/* ============ TOKENS — sampled from the Figma "Genglowtech" frame ============ */
:root{
  --paper: #f9f5ff;           /* lavender page background */
  --panel: #e9e0f7;           /* form panel */
  --navy: #0f0f23;            /* work band, process cards, footer */
  --ink: #0f0f23;
  --ink-dim: #4a4a5a;
  --ink-faint: #6f6f78;       /* inactive service titles */
  --on-dark: #ffffff;
  --on-dark-dim: #b9b8c9;
  --accent: #5720ae;          /* buttons, active service row */
  --accent-hover: #4a1a96;
  --accent-rgb: 87,32,174;
  --logo-purple: #6d28d9;     /* sampled from the logo mark — footer link hovers */
  --line: rgba(15,15,35,0.10);
  --radius-s: 6px;
  --radius-m: 8px;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
}
/* The site is deliberately light-only. */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ color-scheme: light; }
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:100px; background:#ffffff;}
body{
  margin:0; background:#ffffff; color:var(--ink); font-family:var(--font-body);
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img,svg{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}
ul,ol{list-style:none; margin:0; padding:0;}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; font-weight:500; color:var(--ink);}
p{margin:0;}
::selection{background:rgba(var(--accent-rgb),0.25);}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
@media (max-width:640px){ .wrap{padding:0 20px;} }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px;
}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

section{padding:96px 0 0;}
/* Header + hero sit on pure white; everything after the work band is lavender. */
main > section:not(.hero):not(.work-band){background:var(--paper);}
@media (max-width:640px){ section{padding-top:64px;} }
.section-title{font-size:clamp(1.7rem, 3vw, 2.4rem); line-height:1.2; margin-bottom:28px;}

/* scroll-reveal */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in-view{opacity:1; transform:none;}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 28px; border-radius:var(--radius-s); font-family:var(--font-display);
  font-size:0.95rem; font-weight:400; border:1px solid var(--accent); cursor:pointer; white-space:nowrap;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active{transform:scale(0.98);}
.btn--primary{background:var(--accent); color:#fff;}
.btn--primary:hover{background:var(--accent-hover); border-color:var(--accent-hover);}
.btn--ghost{background:transparent; color:var(--accent);}
.btn--ghost:hover{background:var(--accent); color:#fff;}
.btn--small{padding:10px 20px; font-size:0.9rem;}
.btn--block{width:100%;}

/* ============ HEADER / NAV — floating bar ============ */
.site-header{position:sticky; top:0; z-index:200; padding-top:20px;}
/* At rest the bar is see-through; hover (or keyboard focus inside it)
   makes it solid. The logo stays full purple throughout. */
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  max-width:100%; margin:0 auto; white-space:nowrap;
  padding:10px 12px 10px 16px; border:1px solid var(--line); border-radius:var(--radius-m);
  background:rgba(252,250,255,0.55); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:max-width .4s cubic-bezier(.65,0,.35,1), padding .4s cubic-bezier(.65,0,.35,1),
             border-radius .55s ease, background .3s ease, border-color .3s ease, box-shadow .25s ease;
}
.nav:hover, .nav:focus-within{background:rgba(252,250,255,0.97); border-color:rgba(var(--accent-rgb),0.25);}
.site-header.is-scrolled .nav{box-shadow:0 10px 30px -20px rgba(15,15,35,0.45);}
.nav__brand{flex-shrink:0;}
.nav__brand img{height:28px; width:auto;}
/* Links and button fade in after the bar has stretched out. */
.nav__links, .nav__right{transition:opacity .3s ease .4s;}
/* Compact (while scrolling): a small centred pill with just the logo. */
/* (Clipping only while compact, so it doesn't cut off the Book a call glow.) */
/* The logo is centred from the first frame and the bar closes in around
   it from both sides, so it never shows as a long bar with the logo left. */
.site-header.is-compact .nav{max-width:84px; padding:10px 16px; gap:0; border-radius:999px; overflow:hidden; justify-content:center;}
.site-header.is-compact .nav__links,
.site-header.is-compact .nav__right{opacity:0; pointer-events:none; transition:opacity .15s ease;}
.site-header.is-compact nav[aria-label="Primary"],
.site-header.is-compact .nav__right{flex:0 0 0; width:0; min-width:0; overflow:hidden;}
.nav__links{display:flex; gap:8px;}
.nav__links a{
  padding:8px 14px; font-family:var(--font-display); font-size:0.95rem; color:var(--ink-dim);
  transition:color .2s ease;
}
.nav__links a:hover, .nav__links a.is-active{color:var(--ink); font-weight:600;}
.nav__right{display:flex; align-items:center; gap:12px;}
/* "Book a call" glows while the contact section is on screen (nav.js). */
.nav-cta{transition:background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .5s ease;}
.nav-cta.is-glowing{animation:cta-glow 2.4s ease-in-out infinite;}
@keyframes cta-glow{
  0%,100%{box-shadow:0 0 0 1px rgba(var(--accent-rgb),0.35), 0 0 14px 2px rgba(var(--accent-rgb),0.35);}
  50%{box-shadow:0 0 0 1px rgba(var(--accent-rgb),0.6), 0 0 30px 8px rgba(var(--accent-rgb),0.6);}
}
@media (prefers-reduced-motion: reduce){
  .nav-cta.is-glowing{animation:none; box-shadow:0 0 0 1px rgba(var(--accent-rgb),0.5), 0 0 24px 6px rgba(var(--accent-rgb),0.5);}
}
.nav__toggle{display:none; background:#fff; border:1px solid var(--line); border-radius:var(--radius-s); padding:10px 11px; cursor:pointer;}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after{
  content:""; display:block; width:18px; height:2px; background:var(--ink); position:relative;
}
.nav__toggle span::before{position:absolute; top:-6px;}
.nav__toggle span::after{position:absolute; top:6px;}
.mobile-nav{
  display:none; max-height:0; overflow:hidden; transition:max-height .35s ease;
  margin-top:8px; border-radius:var(--radius-m); background:rgba(252,250,255,0.97);
}
.mobile-nav.open{max-height:360px; border:1px solid var(--line);}
.mobile-nav ul{padding:8px 0;}
.mobile-nav a{display:block; padding:12px 18px; font-family:var(--font-display); color:var(--ink-dim);}
/* Book a call in the menu: a full purple button, like the desktop one. */
.mobile-nav .mobile-nav__cta{margin:8px 12px 6px; border-radius:var(--radius-s); background:var(--accent); color:#fff; text-align:center;}
@media (max-width:760px){
  .nav__links{display:none;}
  .nav__toggle{display:block;}
  .mobile-nav{display:block;}
}
@media (max-width:340px){ .nav-cta{display:none;} }

/* ============ HERO ============ */
.hero{padding:96px 0 80px;}
.hero h1{
  font-size:clamp(2rem, 5vw, 4rem); line-height:1.12; font-weight:600;
  text-transform:uppercase; letter-spacing:0.01em;
}
.hero__sub{margin-top:24px; color:var(--ink-dim); font-size:1rem; max-width:46ch;}
.hero__ctas{display:flex; gap:16px; margin-top:28px; flex-wrap:wrap;}
@media (max-width:640px){ .hero{padding:64px 0 56px;} }

/* ============ WORK — dark band with a scrolling strip of project cards ============ */
/* Background "blooms" from page white to navy as the band reaches the
   centre of the screen — --bloom is driven by work-bloom.js. */
.work-band{
  --bloom:0;
  background:var(--navy);
  background:color-mix(in srgb, var(--navy) calc(var(--bloom) * 100%), var(--bloom-edge, #ffffff));
  padding:90px 0; overflow:hidden;
}
.work-marquee{overflow:hidden;}
.work-track{display:flex; gap:20px; width:max-content; animation:marquee 60s linear infinite;}
.work-marquee:hover .work-track, .work-marquee:focus-within .work-track{animation-play-state:paused;}
@keyframes marquee{from{transform:translateX(0);} to{transform:translateX(calc(-50% - 10px));}}
/* Reduced motion: no auto-scroll — the strip becomes a normal swipe/scroll row. */
@media (prefers-reduced-motion: reduce){
  .work-marquee{overflow-x:auto; scrollbar-width:none;}
  .work-track{animation:none; padding:0 28px;}
}

.work-card{
  position:relative; display:block; width:clamp(240px, 28vw, 410px); aspect-ratio:410/500;
  padding:0; border:0; border-radius:4px; overflow:hidden; cursor:zoom-in; background:#222;
}
.work-card img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
.work-card:hover img, .work-card:hover .shot{transform:scale(1.04);}
.work-card__tags{
  position:absolute; top:14px; left:14px; display:flex; gap:6px; flex-wrap:wrap;
  opacity:0; transform:translateY(-4px); transition:opacity .25s ease, transform .25s ease;
}
.work-card:hover .work-card__tags, .work-card:focus-visible .work-card__tags{opacity:1; transform:none;}
.work-card__tags span{
  font-size:0.72rem; padding:4px 9px; border-radius:3px; color:#fff;
  background:rgba(255,255,255,0.22); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}

/* Placeholder "shot" art until real mockup images are added (see work.js).
   --h sets the hue of each project's glow. */
.shot{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center; padding:24px;
  background:
    radial-gradient(circle at 70% 25%, hsl(var(--h,265) 85% 65% / .85), transparent 55%),
    radial-gradient(circle at 20% 85%, hsl(calc(var(--h,265) + 40) 80% 55% / .55), transparent 50%),
    linear-gradient(160deg, #26263f, #0b0b18);
  color:#fff; font-family:var(--font-display); font-weight:600; font-size:clamp(1.3rem, 2.4vw, 2rem);
  line-height:1.1; text-align:center; transition:transform .5s ease;
}
.shot--alt{background:
    radial-gradient(circle at 30% 30%, hsl(var(--h,265) 70% 75% / .9), transparent 55%),
    linear-gradient(200deg, #3a3a55, #121222);}

/* ============ LIGHTBOX ============ */
.lightbox{
  width:min(1060px, calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:0; border:0;
  background:transparent; overflow:visible; color:#fff;
}
.lightbox::backdrop{background:rgba(160,155,170,0.55); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);}
.lightbox[open]{animation:lb-in .25s ease;}
@keyframes lb-in{from{opacity:0; transform:scale(.97);}}
.lightbox__close{
  position:absolute; top:-40px; left:50%; transform:translateX(-50%);
  width:32px; height:32px; border:0; border-radius:50%; background:rgba(255,255,255,0.7);
  color:var(--ink); font-size:1.4rem; line-height:1; cursor:pointer;
}
.lightbox__main{margin:0;}
.lightbox__stage{aspect-ratio:16/10; max-height:calc(100vh - 220px); width:100%; border-radius:4px; overflow:hidden; background:#222;}
.lightbox__stage img{width:100%; height:100%; object-fit:cover;}
.lightbox__stage .shot{font-size:clamp(1.6rem, 4vw, 3rem);}
.lightbox__caption{
  margin-top:10px; font-family:var(--font-display); font-size:0.9rem; color:var(--ink); text-align:center;
}
.lightbox__thumbs{display:flex; justify-content:center; gap:12px; margin-top:12px;}
.lightbox__thumbs[hidden]{display:none;}
.lightbox__thumbs button{
  width:clamp(56px, 10vw, 100px); aspect-ratio:1; padding:0; border:2px solid transparent;
  border-radius:3px; overflow:hidden; cursor:pointer; opacity:.6; transition:opacity .2s, border-color .2s; background:#222;
}
.lightbox__thumbs button[aria-current="true"]{opacity:1; border-color:#fff;}
.lightbox__thumbs button:hover{opacity:1;}
.lightbox__thumbs img{width:100%; height:100%; object-fit:cover;}
.lightbox__thumbs .shot{font-size:0; padding:0;}

/* ============ SERVICES — list; hovered (or first) row fills purple ============ */
.svc-list{border-bottom:1px solid var(--line);}
.svc{
  display:grid; grid-template-columns:90px 1fr minmax(200px, 270px); align-items:center; gap:20px;
  padding:22px 16px; border-top:1px solid var(--line); border-radius:var(--radius-m);
  transition:background .25s ease, color .25s ease;
}
.svc:first-child{border-top:0;}
.svc__num{grid-column:1; grid-row:1; font-size:0.75rem; color:#fff; opacity:0; transition:opacity .2s;}
.svc__title{
  grid-column:1 / 3; grid-row:1; font-size:clamp(1.1rem, 2.1vw, 1.75rem); font-weight:500;
  text-transform:uppercase; color:var(--ink-faint); transition:color .25s ease;
}
.svc__desc{grid-column:3; grid-row:1; font-size:0.8rem; color:var(--ink); line-height:1.5;}
/* Active state: the default first row, or whichever row is hovered. */
.svc.is-active, .svc-list:hover .svc:hover{background:var(--accent); border-top-color:transparent;}
.svc.is-active + .svc, .svc-list:hover .svc:hover + .svc{border-top-color:transparent;}
.svc.is-active .svc__num, .svc-list:hover .svc:hover .svc__num{opacity:.85;}
.svc.is-active .svc__title, .svc-list:hover .svc:hover .svc__title{grid-column:2; text-align:center; color:#fff;}
.svc.is-active .svc__desc, .svc-list:hover .svc:hover .svc__desc{color:rgba(255,255,255,0.85);}
/* While another row is hovered, the default row goes back to rest. */
.svc-list:hover .svc.is-active:not(:hover){background:transparent;}
.svc-list:hover .svc.is-active:not(:hover) + .svc{border-top-color:var(--line);}
.svc-list:hover .svc.is-active:not(:hover) .svc__num{opacity:0;}
.svc-list:hover .svc.is-active:not(:hover) .svc__title{grid-column:1 / 3; text-align:left; color:var(--ink-faint);}
.svc-list:hover .svc.is-active:not(:hover) .svc__desc{color:var(--ink);}
/* "Something else?" row: an invisible link stretched over the whole row. */
.svc--link{position:relative;}
.svc__cover{position:absolute; inset:0; border-radius:inherit;}
.svc__cover:focus-visible{outline-offset:-2px;}
@media (max-width:700px){
  .svc{grid-template-columns:1fr; gap:6px;}
  .svc__num{display:none;}
  .svc__title, .svc.is-active .svc__title, .svc-list:hover .svc:hover .svc__title,
  .svc-list:hover .svc.is-active:not(:hover) .svc__title{grid-column:1; text-align:left;}
  .svc__desc{grid-column:1; grid-row:2;}
}

/* ============ PROCESS — four dark cards ============ */
.process-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.process-item{display:flex;}
.process-item > .process-card{flex:1;}
@media (max-width:900px){ .process-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .process-grid{grid-template-columns:1fr;} }
.process-card{
  position:relative; transform-style:preserve-3d;
  background:var(--navy); color:var(--on-dark); border-radius:4px; padding:28px 30px;
  min-height:264px; display:flex; flex-direction:column; justify-content:space-between; gap:40px;
  /* Slow ease back to flat when the mouse leaves (also covers the scroll-reveal). */
  transition:opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease;
}
.process-card > *{position:relative; z-index:1; transition:transform .6s cubic-bezier(.2,.8,.2,1), text-shadow .3s ease;}
/* Light spot that follows the pointer. */
.process-card::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0;
  background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(167,128,255,0.22), transparent 55%);
  transition:opacity .4s ease;
}
/* Embossed tilt while hovered — process-tilt.js sets the variables. */
.process-card.is-tilting{
  transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1.03);
  transition:opacity .6s ease, transform .12s ease-out, box-shadow .12s ease-out;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),          /* raised top rim */
    inset 0 -2px 4px rgba(0,0,0,0.55),             /* pressed lower rim */
    inset 0 0 0 1px rgba(var(--accent-rgb),0.35),
    var(--sx,0px) calc(var(--sy,0px) + 18px) 34px -12px rgba(15,15,35,0.55);
}
.process-card.is-tilting::before{opacity:1;}
.process-card.is-tilting > *{transform:translateZ(26px); transition:transform .3s ease-out, text-shadow .3s ease;}
.process-card.is-tilting h3{text-shadow:0 -1px 0 rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.18);}
.process-card__head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px;}
.process-card h3{color:#fff; font-size:0.9rem; text-transform:uppercase; line-height:1.6; max-width:12ch;}
.process-card__num{
  flex-shrink:0; padding:3px 7px; border-radius:3px; background:var(--accent);
  font-size:0.75rem; color:#fff; line-height:1.4;
}
.process-card p{font-size:0.85rem; color:var(--on-dark-dim); max-width:22ch;}

/* ============ TEAM ============ */
.team{display:grid; grid-template-columns:1fr 3fr; gap:28px; align-items:center;}
.team__tagline{font-family:var(--font-display); font-weight:600; font-size:clamp(1.1rem,1.8vw,1.5rem); line-height:1.3; text-align:right;}
.team-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.team-card__photo{
  aspect-ratio:306/400; border-radius:2px; margin-bottom:12px; overflow:hidden;
  background:#d9d3e6;
}
.team-card__photo img{width:100%; height:100%; object-fit:cover;}
.team-card h3{font-size:0.95rem; font-weight:500;}
.team-card p{font-size:0.8rem; color:var(--ink-faint);}
@media (max-width:860px){
  .team{grid-template-columns:1fr;}
  .team__tagline{text-align:left;}
}
/* Phones: one profile per row, top to bottom. */
@media (max-width:560px){ .team-grid{grid-template-columns:1fr;} }

/* ============ CONTACT ============ */
#contact{padding-bottom:120px;}
.contact{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start;}
@media (max-width:860px){ .contact{grid-template-columns:1fr; gap:40px;} }
.contact__title{font-size:clamp(2rem, 4.2vw, 3.6rem); line-height:1.1; margin-bottom:14px;}
.contact__intro > p{color:var(--ink-dim); max-width:46ch;}
.contact__art{
  margin-top:40px; aspect-ratio:576/469; border-radius:var(--radius-s); overflow:hidden;
  background:linear-gradient(180deg, #0b0624, #1f0e5e 12%, #10052f); /* shows until the canvas paints */
}
/* Interactive wave field — drawn by sea-matrix.js. */
.contact__art canvas{display:block; width:100%; height:100%; cursor:crosshair; touch-action:pan-y;}
@media (max-width:860px){ .contact__art{display:none;} }

.contact__form{
  background:var(--panel); border-radius:var(--radius-s); padding:44px 40px 40px;
  display:flex; flex-direction:column; gap:22px;
}
@media (max-width:520px){ .contact__form{padding:28px 20px;} }
.field{display:flex; flex-direction:column; gap:10px;}
.field label{font-family:var(--font-display); font-size:0.95rem; color:var(--ink);}
.req{color:var(--ink);}
.field input, .field select, .field textarea{
  width:100%; background:#fff; border:1px solid rgba(15,15,35,0.08); border-radius:var(--radius-s);
  padding:16px 12px; color:var(--ink); font-family:var(--font-body); font-size:0.95rem; transition:border-color .2s;
}
.field input::placeholder, .field textarea::placeholder{color:#9a8f9a;}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--accent); outline:none;}
.field input:user-invalid, .field select:user-invalid{border-color:#c0392b;}
.field textarea{resize:vertical; min-height:100px;}
.select-wrap{position:relative;}
.select-wrap::after{
  content:""; position:absolute; right:18px; top:50%; transform:translateY(-25%);
  border:5px solid transparent; border-top-color:var(--ink); pointer-events:none;
}
.select-wrap select{appearance:none; padding-right:40px;}
.select-wrap select:invalid{color:#9a8f9a;}
.form-success{
  display:none; padding:14px 16px; border-radius:var(--radius-s);
  background:#fff; border:1px solid rgba(var(--accent-rgb),0.4); color:var(--accent); font-size:0.9rem;
}
.form-success.show{display:block;}
.form-error{
  display:none; padding:14px 16px; border-radius:var(--radius-s);
  background:#fff; border:1px solid rgba(192,57,43,0.45); color:#a93226; font-size:0.9rem;
}
.form-error.show{display:block;}
.contact__form .btn[disabled]{opacity:.65; cursor:progress;}
/* Honeypot — off-screen, not display:none (some bots skip hidden fields). */
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

/* ============ FOOTER ============ */
.site-footer{background:var(--navy); color:var(--on-dark); padding:72px 0 48px;}
.footer__logo{width:100%; max-width:1260px; height:auto; margin:0 auto 64px;}
.footer__grid{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap;}
.footer__about p{font-family:var(--font-display); font-size:1.15rem; line-height:1.9;}
.footer__contact{display:flex; gap:28px; margin-top:18px;}
.footer__contact a{font-family:var(--font-display); font-size:1.15rem; transition:color .2s;}
.footer__contact a:hover{color:var(--logo-purple);}
.footer__cols{display:flex; gap:clamp(32px, 6vw, 72px);}
.footer__cols h4{color:#fff; font-size:1rem; text-transform:uppercase; margin-bottom:16px;}
.footer__cols ul{display:flex; flex-direction:column; gap:14px;}
.footer__cols a{font-size:0.9rem; color:#fff; transition:color .2s;}
.footer__cols a:hover{color:var(--logo-purple);}
.footer__legal{margin-top:72px; font-size:0.85rem; color:var(--on-dark-dim);}
/* Phones: everything stacks top to bottom — logo, info, links, social, legal. */
@media (max-width:640px){
  .footer__grid, .footer__cols{flex-direction:column; gap:36px;}
  .footer__logo{margin-bottom:44px;}
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-top{padding:28px 0;}
.legal-top .wrap{display:flex; align-items:center; justify-content:space-between; gap:20px;}
.legal-top img{height:28px; width:auto;}
.legal-top a.back{font-family:var(--font-display); font-size:0.95rem; color:var(--accent);}
.legal-top a.back:hover{color:var(--accent-hover);}
.legal{background:var(--paper); padding:72px 0 96px;}
.legal .wrap{max-width:760px;}
.legal h1{font-size:clamp(1.9rem, 4vw, 2.6rem); line-height:1.15; margin-bottom:10px;}
.legal .updated{color:var(--ink-dim); font-size:0.9rem; margin-bottom:40px;}
.legal h2{font-size:1.2rem; margin:36px 0 12px;}
.legal p, .legal li{color:var(--ink-dim); line-height:1.7;}
.legal p + p{margin-top:12px;}
.legal ul{list-style:disc; padding-left:22px; display:flex; flex-direction:column; gap:6px; margin-top:8px;}
.legal a{color:var(--accent); text-decoration:underline; text-underline-offset:3px;}
@media (max-width:640px){ .legal{padding:48px 0 64px;} }
