/* Legal pages — shared styles (inherits site fonts from Inter) */
:root {
  --ink: #0F1B3D;
  --ink-2: #3A4675;
  --ink-3: #6B7596;
  --blue: #2563EB;
  --blue-deep: #1E3A8A;
  --border: rgba(191,219,254,0.7);
  --card-bg: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%, rgba(219,234,254,0.6) 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #F5F7FB;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Blue hero header — same visual language as site */
.legal-header {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(71,127,220,0.25) 80%, rgba(255,255,255,0.35) 100%),
    radial-gradient(ellipse 80% 70% at 8% 5%, rgba(210, 230, 255, 0.7) 0%, rgba(160, 200, 245, 0.45) 25%, rgba(110, 165, 230, 0.2) 50%, transparent 75%),
    linear-gradient(160deg, #4A7DD8 0%, #3865CC 22%, #2F5BC8 48%, #1E40A8 78%, #17308A 100%);
  padding-bottom: 80px;
}
/* Subtle starfield echo */
.legal-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
                    radial-gradient(1px 1px at 60% 60%, rgba(255,255,255,0.4), transparent),
                    radial-gradient(1.5px 1.5px at 85% 25%, rgba(255,255,255,0.5), transparent),
                    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.45), transparent),
                    radial-gradient(1px 1px at 75% 70%, rgba(255,255,255,0.5), transparent);
  background-size: 400px 400px;
  opacity: 0.8;
  pointer-events: none;
}

.legal-nav {
  position: relative;
  z-index: 10;
  padding: 22px 0;
}
.legal-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-logo { display: inline-flex; align-items: center; text-decoration: none; }
.legal-logo img { height: 88px; width: auto; display: block; transition: transform 0.2s; }
.legal-logo:hover img { transform: scale(1.03); }

/* Pill-style nav on blue — mirrors main site */
.legal-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 6px 22px rgba(15,27,61,0.18);
}
.legal-back {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 4px;
  transition: color 0.2s;
}
.legal-back:hover { color: white; }

.legal-nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.25);
}

.legal-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 6px 26px 6px 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15,27,61,0.12);
}
.legal-lang select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  padding: 0;
  outline: none;
}
.legal-lang select.lang-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.legal-lang .lang-display {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  pointer-events: none;
  text-transform: uppercase;
}
.legal-lang::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

/* Hero headline */
.legal-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 24px 0;
  text-align: center;
}
.legal-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.legal-hero-inner h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  color: white;
  text-wrap: balance;
}
.legal-hero-inner .intro {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 auto 20px;
  max-width: 680px;
  text-wrap: pretty;
}
.legal-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Main content card — sits over blue header tail */
.legal-main {
  max-width: 860px;
  margin: -60px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.legal-card {
  background: white;
  border: 1px solid rgba(30,58,138,0.08);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 10px 30px rgba(76,93,156,0.06);
}
.legal-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 18px 0 4px;
}
.legal-card p {
  color: var(--ink-2);
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-card ul {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-card ul li { margin: 4px 0; }
.legal-card ul li::marker { color: var(--blue); }
.legal-card .category {
  margin: 10px 0 16px;
}
.legal-card .category strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 2px;
}
.legal-card .category span {
  color: var(--ink-3);
  font-size: 15px;
}

/* Divider between sections */
.legal-card .sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,58,138,0.1), transparent);
  margin: 28px 0;
}

/* Cross-link between the two legal pages */
.legal-crosslink {
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 0 24px;
}
.legal-crosslink a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.legal-crosslink a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.12);
}
.legal-crosslink .arrow {
  color: var(--blue);
  font-size: 20px;
}

/* Footer */
.legal-footer {
  text-align: center;
  padding: 32px 24px 64px;
  color: var(--ink-3);
  font-size: 13px;
  border-top: 1px solid rgba(30,58,138,0.06);
}
.legal-footer a {
  color: var(--ink-2);
  text-decoration: none;
  margin: 0 10px;
}
.legal-footer a:hover { color: var(--blue); text-decoration: underline; }

@media (max-width: 720px) {
  .legal-card { padding: 28px 22px; }
  .legal-hero { padding: 40px 20px 32px; }
}
