/* Legal pages (privacy, terms) — EN and ES. */
:root {
  --bg: oklch(99.5% .002 250); --surface: oklch(97% .005 250); --border: oklch(92% .01 250);
  --text: oklch(18% .02 250); --text-muted: oklch(45% .02 250);
  --accent: #1A56DB;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* Header extras (base styles come from shared-navigation.css) */
.nav .nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; }
.lang-switch a[aria-current="page"] { background: #f8bd00; color: var(--text); }
.nav .nav-hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
@media (max-width: 767px) {
  .nav .nav-mobile > a, .nav .nav-mobile summary, .nav .nav-mobile .services-list a { min-height: 44px; display: flex; align-items: center; padding: 0; }
}

/* Layout */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { margin: 0 6px; }
.legal-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
h1 { font-family: 'Fraunces', ui-serif, Georgia, serif; font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.meta { font-size: 14px; color: var(--text-muted); }
.legal-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 720px); gap: 64px; } }

.toc { font-size: 14px; }
.toc h2 { font-family: 'Inter', system-ui, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--text-muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
@media (min-width: 960px) { .toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
@media (max-width: 959px) { .toc { border: 1px solid var(--border); border-radius: 10px; padding: 16px 16px 8px; background: #fff; } }

.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 40px; }
.summary-box h2 { margin-top: 0 !important; font-size: 22px !important; }
.prose section { scroll-margin-top: 88px; }
.prose h2 { font-family: 'Fraunces', ui-serif, Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 14px; }
.prose section:first-of-type h2 { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 16px; color: var(--text); line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; background: var(--surface); }
.table-scroll { overflow-x: auto; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer */
footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { height: 38px; width: auto; margin-bottom: 14px; display: block; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 340px; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { header.nav, .toc, footer, .skip { display: none !important; } .legal-layout { display: block; } }
