/* ===== LEGAL PAGES SHARED STYLES ===== */
:root {
  --bg: #F8FAFC;
  --bg-soft: #F1F5F9;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #CBD5E1;
  --text: #111827;
  --text-dim: #475569;
  --text-muted: #94A3B8;
  --navy: #0B1220;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #DBEAFE;
  --cyan: #22D3EE;
  --accent-grad: linear-gradient(135deg, #2563EB 0%, #22D3EE 100%);
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.nav-cta {
  background: var(--surface);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
}
.nav-cta:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Page layout */
.legal-page {
  padding: 80px 0 120px;
}

.legal-header {
  margin-bottom: 56px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 1px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.legal-meta strong {
  color: var(--text-dim);
  font-weight: 600;
}

/* Content */
.legal-content {
  max-width: 740px;
}

.legal-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 48px;
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.04);
}
.legal-intro p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.legal-intro p:last-child { margin-bottom: 0; }

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 56px 0 18px;
  padding-top: 12px;
  position: relative;
}
.legal-content h2::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent-grad);
  margin-bottom: 14px;
  border-radius: 1px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 400;
}

.legal-content ul {
  list-style: none;
  margin: 8px 0 20px;
  padding-left: 0;
}
.legal-content ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 400;
}
.legal-content ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
}

.legal-content strong {
  color: var(--navy);
  font-weight: 700;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s;
}
.legal-content a:hover { color: var(--blue-dark); }

/* Contact block */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 20px 0;
}
.contact-block p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.7;
}
.contact-block p:last-child { margin-bottom: 0; }

/* Tables (cookie policy) */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13.5px;
}
.cookie-table thead {
  background: var(--bg-soft);
}
.cookie-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.cookie-table td {
  padding: 14px 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.cookie-table tbody tr:last-child td {
  border-bottom: none;
}
.cookie-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.025);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-soft);
  margin-top: 60px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 700px) {
  body { font-size: 14px; }
  .legal-page { padding: 50px 0 80px; }
  .legal-content h2 { font-size: 21px; margin-top: 44px; }
  .legal-content h3 { font-size: 16px; }
  .legal-intro { padding: 22px; }
  .nav-inner { padding: 16px 20px; }
  .container { padding: 0 20px; }
  .cookie-table { font-size: 12.5px; display: block; overflow-x: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
