/* ============================================================
   AIVENA — shared styles for the legal/info pages (all 13 legal pages + contact).
   The landing page's own look (R-145, 21 Nov 2026): its tokens, copied from marketing/v2/index.html :root —
   chalk background, ink text, olive accent, Instrument Serif headings, Inter body, JetBrains Mono labels.
   If the landing palette changes, change it here too (index.html keeps its styles inline; there is no shared file).
   Look only: no page text depends on this file.
   ============================================================ */
/* Fonts are served from this site, never from Google: a legal page makes no third-party font request.
   The files are the official @fontsource npm packages (v5.3.0: inter, instrument-serif, jetbrains-mono), woff2 only,
   latin + latin-ext (Spanish), only the weights this sheet uses. Licence: SIL OFL 1.1, assets/fonts/*-OFL.txt. */
/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/inter-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* inter-latin-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/inter-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/inter-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* inter-latin-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/inter-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/inter-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* inter-latin-ext-700-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/inter-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-700-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/inter-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* instrument-serif-latin-ext-400-normal */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* instrument-serif-latin-400-normal */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/instrument-serif-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* jetbrains-mono-latin-ext-400-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* jetbrains-mono-latin-400-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* jetbrains-mono-latin-ext-500-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* jetbrains-mono-latin-500-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  color-scheme:light;
  --chalk:#FBF8F1; --limestone:#F1EBDE; --olive:#4A5D3A; --olive-deep:#41522F; --sage:#8A9A6B;
  --terra:#C86B4A; --ink:#26302A; --stone:#6B7268; --line:rgba(107,114,104,.18); --card:#FFFDF8;
  --shadow-sm:0 10px 30px -20px rgba(74,93,58,.4);
  --serif:'Instrument Serif',Georgia,serif; --sans:'Inter',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ background:var(--chalk); }
body{ font-family:var(--sans); color:var(--ink); -webkit-font-smoothing:antialiased; margin:0; overflow-x:hidden; line-height:1.6; }

/* ---- brand classes (names kept from the earlier sheet; every page uses them) ---- */
.glass-2{ background:rgba(251,248,241,.86); border:1px solid var(--line); box-shadow:var(--shadow-sm); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.btn{ transition:transform .2s var(--ease), box-shadow .25s, background .25s; }
.btn:active{ transform:scale(.97); }
.btn-green{ background:var(--olive); color:var(--chalk); font-weight:600; box-shadow:0 8px 24px -14px rgba(74,93,58,.7); }
.btn-green:hover{ background:var(--olive-deep); }
.data{ font-family:var(--mono); font-variant-numeric:tabular-nums; }
.kicker-muted{ font-family:var(--mono); text-transform:uppercase; letter-spacing:.18em; font-size:.7rem; color:var(--stone); }
.nav-link{ position:relative; color:var(--stone); text-decoration:none; }
.nav-link::after{ content:""; position:absolute; left:0; bottom:-4px; height:1px; width:0; background:var(--olive); transition:width .3s var(--ease); }
.nav-link:hover{ color:var(--ink); } .nav-link:hover::after{ width:100%; }

/* ---- legal content layout ---- */
.legal-container{ position:relative; max-width:720px; margin:0 auto; padding:120px 24px 72px; }
.legal-container h1, .legal-container h2, .legal-container h3{ font-family:var(--serif); font-weight:400; color:var(--ink); letter-spacing:-.01em; text-wrap:balance; }
.legal-container h1{ font-size:46px; line-height:1.07; margin:0 0 12px; }
.legal-meta{ color:var(--stone); font-size:14px; font-style:italic; margin:0 0 40px; }
.legal-container section{ margin-bottom:48px; }
.legal-container h2{ font-size:30px; line-height:1.15; margin:0 0 16px; scroll-margin-top:110px; }
.legal-container h3{ font-size:22px; line-height:1.25; margin:26px 0 12px; }
.legal-container p, .legal-container li{ font-size:16px; line-height:1.7; color:var(--ink); }
.legal-container p{ margin:0 0 16px; }
.legal-container ul, .legal-container ol{ padding-left:20px; margin:0 0 16px; }
.legal-container strong, .legal-container b{ font-weight:600; color:var(--ink); }
.legal-container a{ color:var(--olive); text-decoration:underline; text-underline-offset:2px; }
.legal-container a:hover{ color:var(--olive-deep); }
.legal-container a.btn{ text-decoration:none; color:var(--chalk); }

/* Tables. Several pages carry their own table styles written for the old dark sheet (page <style> blocks and inline
   style attributes: cream text, white hairlines). The pages are not edited in this change (their text must stay
   byte-identical), so these rules override only the COLOURS of those tables, with !important where an inline style
   would otherwise win. Layout (padding, widths) stays the page's own. */
.legal-container table{ border-collapse:collapse; }
.legal-container table th, .legal-container table td{ color:var(--ink) !important; border-bottom-color:var(--line) !important; }
.legal-container table th{ color:var(--stone) !important; }
.legal-container table td:first-child{ color:var(--ink) !important; }
.legal-container table .eu{ color:var(--olive) !important; } .legal-container table .us{ color:var(--ink) !important; }
.legal-container .sp-inactive td{ color:var(--stone) !important; }
.legal-container .sp-wrap, .legal-container .ck-wrap, .legal-container div[style*="overflow-x"]{ border-color:var(--line) !important; background:var(--card); border-radius:12px; }
.legal-container .sp-note{ color:var(--stone) !important; }

/* placeholder — deliberately loud so an unfilled slot is obvious (the build fills the two NIF slots) */
.legal-placeholder{ display:block; background:rgba(216,162,74,.14); border:1px dashed rgba(200,107,74,.65); color:#8A3F22;
  font-family:var(--mono); font-size:13px; line-height:1.6; padding:10px 14px; border-radius:8px; margin:0; }

/* language toggle pill (top-right of content) */
.legal-language-toggle{ position:absolute; top:120px; right:24px; display:inline-flex; gap:2px; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:3px; z-index:5; }
.legal-language-toggle a, .legal-language-toggle button{ font-family:var(--mono); font-size:11px; letter-spacing:.06em; color:var(--stone); text-decoration:none; padding:5px 11px; border-radius:999px; border:none; background:transparent; cursor:pointer; }
.legal-language-toggle a.active, .legal-language-toggle button.active{ background:var(--olive); color:var(--chalk); }

/* ---- nav (fixed light glass, as on the landing) ---- */
.legal-header{ position:fixed; top:0; left:0; right:0; z-index:50; padding:0 12px; }
.legal-nav{ max-width:1152px; margin:12px auto 0; display:flex; align-items:center; justify-content:space-between; border-radius:16px; padding:12px 20px; }
.legal-nav .brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.legal-nav .brand img{ height:28px; width:auto; }
.legal-nav .brand b{ font-size:20px; font-weight:700; letter-spacing:.16em; color:var(--ink); }
.legal-nav .links{ display:flex; align-items:center; gap:32px; font-size:14px; }
.legal-nav .cta{ border-radius:12px; padding:10px 18px; font-size:14px; text-decoration:none; }
@media (max-width:880px){ .legal-nav .links{ display:none; } }

/* ---- footer (as on the landing) ---- */
.site-footer{ position:relative; z-index:10; padding:0 16px 48px; background:var(--limestone); }
.site-footer .inner{ max-width:1152px; margin:0 auto; padding-top:8px; }
.site-footer .divider{ height:1px; background:linear-gradient(90deg,transparent,rgba(74,93,58,.35),transparent); margin-bottom:40px; }
.site-footer .cols{ display:grid; grid-template-columns:1.6fr 1fr; gap:40px; margin-bottom:36px; }
.site-footer .brandline{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.site-footer .brandline img{ height:24px; } .site-footer .brandline b{ font-weight:700; letter-spacing:.16em; color:var(--ink); }
.site-footer .compliance{ font-family:var(--mono); font-size:12px; color:var(--stone); margin:0 0 12px; }
.site-footer h4{ font-family:var(--mono); text-transform:uppercase; letter-spacing:.18em; font-size:.7rem; color:var(--stone); margin:0 0 14px; font-weight:500; }
.site-footer .col a{ display:block; color:var(--ink); text-decoration:none; font-size:14px; margin-bottom:10px; }
.site-footer .col a:hover{ color:var(--olive); }
.site-footer .bottom{ border-top:1px solid var(--line); padding-top:22px; text-align:center; }
.site-footer .bottom p{ font-size:12px; color:var(--stone); margin:0 0 6px; }
.site-footer .bottom a{ color:var(--olive); }

@media (max-width:768px){
  .legal-container{ padding:104px 20px 56px; }
  .legal-container h1{ font-size:36px; }
  .legal-container h2{ font-size:25px; }
  .legal-language-toggle{ position:static; margin:0 0 28px; }
  .site-footer .cols{ grid-template-columns:1fr; gap:28px; }
}
