/* Shared styling for Hybrid's legal pages (privacy, gdpr, terms, contact).
   Token values are lifted from english-hybrid-final-page.html so the legal
   pages read as part of the same product, not a bolted-on afterthought.
   Kept as a separate file rather than inlined four times. */

:root{
  --bg:#041006;
  --bg-2:#081a0b;
  --panel:#0d1c10;
  --panel-2:#132814;
  --glass:rgba(255,255,255,.062);
  --glass-2:rgba(255,255,255,.095);
  --line:rgba(255,255,255,.12);
  --line-strong:rgba(174,255,104,.25);
  --white:#ffffff;
  --text:#f8fff7;
  --soft:#c7d4c7;
  --muted:#829184;
  --green:#18a84f;
  --lime:#9dff2a;
  --mint:#77f792;
  --amber:#f0a612;
  --red:#ed4b4b;
  --radius:20px;
  --container:920px;
  /* The homepage's own brand gradient, used by the wordmark's sub-line and
     the install button so the header matches rather than merely resembles. */
  --brand-gradient:linear-gradient(100deg,#415c5e 0%,#8ea100 51%,#ffbf04 100%);
  --brand-gradient-hover:linear-gradient(100deg,#506d70 0%,#9bad0d 51%,#ffca27 100%);
}

*{box-sizing:border-box}

/* The solid ground under everything.
   body's background is a GRADIENT - an image, not a colour - so anything the
   gradient does not paint fell through to the browser's white canvas. That is
   the white that appeared when the page was overscrolled. A colour on html
   means there is no uncovered area left to be white. */
html{scroll-behavior:smooth;background:#050b06}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 4%, rgba(157,255,42,.06), transparent 22%),
    radial-gradient(circle at 92% 10%, rgba(24,168,79,.08), transparent 22%),
    linear-gradient(180deg,#010402 0%, #031006 18%, #061509 46%, #050b06 100%);
  background-attachment:fixed;
  min-height:100vh;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 22px}

/* ---------- header ----------
   Lifted from english-hybrid-final-page.html rather than approximated. The
   first attempt at this was built by eye and came out as a flush sticky bar
   with a 34px mark and four menu items; the real one is a floating pill with
   a 60px logo, a 31.5px Unbounded wordmark and six links. Copying the rules
   is the only way the two actually match. */
.legal-nav{
  position:sticky;top:14px;z-index:50;
  width:min(1380px,calc(100% - 28px));
  margin:14px auto 0;
  border:1px solid rgba(160,177,177,.12);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(10,16,17,.97),rgba(5,9,10,.965));
  backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  box-shadow:0 30px 96px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.035), inset 0 0 42px rgba(255,255,255,.012);
}
.legal-nav-inner{
  height:76px;display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:0 22px;
}
.brand{
  position:relative;display:flex;align-items:center;gap:2px;
  min-width:0;isolation:isolate;text-decoration:none;
}
.brand-logo{
  position:relative;z-index:1;width:60px;height:60px;
  object-fit:contain;flex:0 0 60px;display:block;
}
.brand-text{
  position:relative;z-index:1;display:flex;flex-direction:column;
  justify-content:center;align-self:center;gap:1px;width:214px;
  font-family:Unbounded,sans-serif;font-weight:900;line-height:.88;margin:0;padding:0;
}
.brand-main{
  display:block;width:max-content;font-size:31.5px;color:#fff;
  letter-spacing:-.07em;transform:scaleX(1.1);transform-origin:left center;
}
/* The wordmark's gradient fill, same as the homepage. */
.brand-sub{
  display:block;width:max-content;font-size:9px;letter-spacing:.015em;
  text-transform:uppercase;transform:translateY(1px) scaleX(1.02);transform-origin:left center;
  background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.legal-nav-links{
  display:flex;align-items:center;gap:34px;
  color:#b7c4b9;font-weight:700;font-size:15px;
}
.legal-nav-links a{color:inherit;text-decoration:none;transition:color .2s ease}
.legal-nav-links a:hover{color:#fff}
.legal-nav-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 24px;border-radius:18px;white-space:nowrap;
  background:var(--brand-gradient);color:#fff;font-weight:900;text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  text-shadow:0 1px 1px rgba(0,0,0,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 14px 32px rgba(255,191,4,.12),0 24px 54px rgba(0,0,0,.34);
}
.legal-nav-cta:hover{background:var(--brand-gradient-hover)}
.legal-cta-icon{width:23px;height:23px;flex:0 0 23px;object-fit:contain;display:block}

/* The homepage drops the menu and shrinks the mark at 980px; same here, except
   the legal pages have no hamburger drawer to open, so the links simply go and
   the logo keeps taking you home. */
@media(max-width:980px){
  .legal-nav-links{display:none}
  .legal-nav-inner{height:66px;padding:0 14px}
  .brand-logo{width:51px;height:51px;flex-basis:51px}
  .brand-main{font-size:22.8px}
  .brand-text{width:auto}
}
@media(max-width:520px){
  .legal-nav-cta{padding:0 16px;min-height:44px}
  .legal-cta-icon{width:19px;height:19px;flex-basis:19px}
  .brand-logo{width:42px;height:42px;flex-basis:42px}
  .brand-main{font-size:19px}
}

/* ---------- page head ---------- */
.legal-head{padding:54px 0 26px}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11.5px;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;
  color:var(--lime);border:1px solid var(--line-strong);
  border-radius:999px;padding:6px 14px;margin-bottom:18px;
}
.legal-head h1{
  font-family:Unbounded,Inter,sans-serif;
  font-size:clamp(28px,5vw,42px);line-height:1.12;margin:0 0 14px;
  letter-spacing:-.5px;
}
.lede{color:var(--soft);font-size:16.5px;margin:0;max-width:64ch}
.updated{color:var(--muted);font-size:13px;margin-top:18px}

/* ---------- content ---------- */
.legal-body{padding-bottom:80px}
.legal-body h2{
  font-family:Unbounded,Inter,sans-serif;
  font-size:20px;margin:44px 0 12px;letter-spacing:-.2px;scroll-margin-top:84px;
}
.legal-body h3{font-size:15.5px;margin:26px 0 8px;color:var(--mint);font-weight:700}
.legal-body p{color:var(--soft);margin:0 0 14px;font-size:15px}
.legal-body ul,.legal-body ol{color:var(--soft);font-size:15px;padding-left:22px;margin:0 0 14px}
.legal-body li{margin-bottom:8px}
.legal-body a{color:var(--lime);text-decoration:none;border-bottom:1px solid rgba(157,255,42,.3)}
.legal-body a:hover{border-bottom-color:var(--lime)}
.legal-body strong{color:var(--text);font-weight:650}
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;
  background:var(--glass);border:1px solid var(--line);border-radius:6px;padding:1.5px 6px;color:var(--mint);
}

/* ---------- table of contents ---------- */
.toc{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 24px;margin:30px 0 8px;
}
.toc-title{font-size:11.5px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:12px}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:28px}
.toc li{margin-bottom:7px;font-size:14px;break-inside:avoid}
.toc a{color:var(--soft);text-decoration:none;border:0}
.toc a:hover{color:var(--lime)}
@media(max-width:620px){.toc ol{columns:1}}

/* ---------- callouts ---------- */
.note{
  border-radius:16px;padding:18px 20px;margin:22px 0;
  border:1px solid var(--line);background:var(--glass);
}
.note p:last-child{margin-bottom:0}
.note-title{font-weight:700;font-size:13.5px;letter-spacing:.3px;margin-bottom:6px;color:var(--text)}
.note.good{border-color:rgba(119,247,146,.3);background:rgba(24,168,79,.09)}
.note.good .note-title{color:var(--mint)}
.note.warn{border-color:rgba(240,166,18,.34);background:rgba(240,166,18,.08)}
.note.warn .note-title{color:var(--amber)}
.note.todo{border-color:rgba(237,75,75,.4);background:rgba(237,75,75,.09)}
.note.todo .note-title{color:var(--red)}

/* Placeholder markers that MUST be replaced before publishing. */
/* `normal`, not `nowrap`. Some of these markers are a full sentence - the
   transfer-mechanism one is 78 characters - and refusing to wrap made them
   push out of the column on a phone. */
.fill{
  background:rgba(240,166,18,.16);border:1px dashed rgba(240,166,18,.55);
  border-radius:5px;padding:1px 7px;color:var(--amber);font-weight:700;
  font-size:13.5px;white-space:normal;
}

/* ---------- tables ---------- */
.table-wrap{overflow-x:auto;margin:18px 0 22px;border:1px solid var(--line);border-radius:14px}
table{border-collapse:collapse;width:100%;min-width:560px;font-size:14px}
th,td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--soft)}
th{background:var(--panel-2);color:var(--text);font-weight:650;font-size:12.5px;letter-spacing:.4px;text-transform:uppercase}
tr:last-child td{border-bottom:0}

/* ---------- contact cards ---------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:26px 0}
.card{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;transition:border-color .18s ease,transform .18s ease;
}
.card:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.card h3{margin:0 0 6px;font-size:15px;color:var(--text)}
.card p{margin:0 0 12px;font-size:13.5px;color:var(--muted)}
.card a{font-size:14px;font-weight:600}

/* ---------- footer ---------- */
.legal-footer{border-top:1px solid var(--line);padding:30px 0 44px;margin-top:20px}
.legal-footer-inner{
  max-width:var(--container);margin:0 auto;padding:0 22px;
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
}
.legal-footer a{color:var(--soft);text-decoration:none;font-size:13.5px;margin-right:18px}
.legal-footer a:hover{color:var(--lime)}
.legal-footer span{color:var(--muted);font-size:13px}

@media(max-width:600px){
  .legal-head{padding:36px 0 20px}
  .legal-body h2{font-size:18px;margin-top:36px}
}
