/* ==========================================================================
   legal.css - shared styles for the standalone legal document pages
   (privacy.html / terms.html). Matches the site UI: the splash screen's
   cool-mint texture as the page backdrop (the canvas recipe from splash.js
   ported to pure CSS gradients: same base, diagonal ramp, and blob
   coordinates), the standard film grain, and the document itself on a dark
   liquid-glass sheet in the scenes' white-on-dark type ladder. No JS.
   ========================================================================== */

*{box-sizing:border-box}

body{
  margin:0;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  word-break:keep-all;
  line-height:1.75;
  /* Splash backdrop, top layer first: center glow pool, mint whisper,
     bottom-right deep, right light, lower-left deep, top glow, then the
     diagonal light ramp over the mid cool-mint base. */
  background-color:#567366;
  background-image:
    radial-gradient(circle 40vmax at 50% 42%,rgba(196,236,220,.26),rgba(196,236,220,0) 100%),
    radial-gradient(circle 40vmax at 74% 8%,rgba(141,214,192,.10),rgba(141,214,192,0) 100%),
    radial-gradient(circle 52vmax at 90% 98%,rgba(48,74,64,.38),rgba(48,74,64,0) 100%),
    radial-gradient(circle 42vmax at 96% 30%,rgba(158,192,177,.22),rgba(158,192,177,0) 100%),
    radial-gradient(circle 46vmax at 4% 78%,rgba(48,74,64,.32),rgba(48,74,64,0) 100%),
    radial-gradient(circle 55vmax at 50% 0%,rgba(158,192,177,.34),rgba(158,192,177,0) 100%),
    linear-gradient(to bottom right,rgba(150,186,170,.80) 0%,rgba(86,115,102,.05) 45%,rgba(44,70,61,.90) 100%);
  background-attachment:fixed;
}

/* Film grain, same recipe as the scenes (SVG feTurbulence data URI). */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity:.05;
}

a{color:inherit}
:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:3px}
::selection{background:#7EC179;color:#0E2B29}

.doc-chrome{
  position:relative;
  z-index:1;
  max-width:46em;
  margin:0 auto;
  padding:clamp(24px,4vw,40px) clamp(20px,5vw,40px) 0;
}
.doc-brand{display:inline-flex;align-items:center;text-decoration:none}
.doc-brand img{
  height:26px;width:auto;display:block;
  /* White over the mint texture, like the site chrome. */
  filter:brightness(0) invert(1) drop-shadow(0 1px 6px rgba(2,58,56,.35));
}

/* The document itself: a dark liquid-glass sheet (the dock/popover recipe)
   so the long text stays AA over the light areas of the texture. */
.doc{
  position:relative;
  z-index:1;
  max-width:46em;
  margin:clamp(18px,4vh,36px) auto clamp(52px,9vh,96px);
  padding:clamp(28px,5vw,56px);
  background:rgba(2,58,56,.5);
  border:1px solid rgba(255,255,255,.28);
  border-radius:22px;
  -webkit-backdrop-filter:blur(10px) saturate(1.2);
  backdrop-filter:blur(10px) saturate(1.2);
  box-shadow:0 18px 50px rgba(2,58,56,.25);
}
.doc h1{
  font-size:clamp(26px,4vw,36px);
  line-height:1.25;
  font-weight:400;
  margin:0 0 6px;
  color:#fff;
}
.doc-date{
  font-size:13px;
  color:rgba(255,255,255,.6);
  margin:0 0 34px;
}
.doc h2{
  font-size:17px;
  font-weight:700;
  margin:34px 0 10px;
  color:#fff;
}
.doc p,.doc li{
  font-size:15px;
  margin:0 0 12px;
  color:rgba(255,255,255,.86);
}
.doc ul,.doc ol{margin:0 0 12px;padding-left:1.4em}
.doc li{margin-bottom:6px}
.doc p a,.doc li a{
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.35);
  padding-bottom:1px;
  transition:color .3s ease,border-color .3s ease;
}
.doc p a:hover,.doc li a:hover{color:#fff;border-color:rgba(255,255,255,.8)}

.doc-footer{
  border-top:1px solid rgba(255,255,255,.2);
  margin-top:52px;
  padding-top:20px;
  font-size:13px;
  line-height:1.8;
  color:rgba(255,255,255,.58);
}
.doc-footer p{margin:0}

.doc-back{
  display:inline-block;
  margin-top:26px;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.75);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.35);
  padding-bottom:2px;
  transition:color .3s ease,border-color .3s ease;
}
.doc-back:hover{color:#fff;border-color:rgba(255,255,255,.8)}

@media (max-width:600px){
  .doc{
    margin-left:12px;
    margin-right:12px;
    padding:26px 20px;
    border-radius:16px;
  }
}
