/* ==========================================================================
   Video Player All Format — legal site stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  --bg: #0a0d10;
  --bg-alt: #0d1116;
  --surface: #12171d;
  --surface-2: #161c23;
  --glass: rgba(18, 23, 29, 0.66);
  --border: rgba(230, 240, 247, 0.09);
  --border-strong: rgba(230, 240, 247, 0.16);
  --text: #e7edf2;
  --text-muted: #97a5b0;
  --text-faint: #5d6b76;
  --accent: #2fd8e8;
  --accent-2: #4e8cff;
  --accent-soft: rgba(47, 216, 232, 0.13);
  --accent-line: rgba(47, 216, 232, 0.35);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --content-measure: 68ch;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

body{
  margin:0;
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(47,216,232,0.09), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(78,140,255,0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0;
  color: #f4f8fb;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ color: #7fe9f2; }
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.site-nav{
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 64px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Sora', sans-serif; font-weight:600; font-size:15px; color:#f4f8fb;
}
.brand-mark{
  width:26px; height:26px; border-radius:7px;
  background: linear-gradient(155deg, var(--accent), var(--accent-2));
  display:flex; align-items:center; justify-content:center; flex:none;
}
.brand-mark svg{ width:12px; height:12px; }
.nav-links{ display:flex; align-items:center; gap: 28px; list-style:none; margin:0; padding:0; }
.nav-links a{
  color: var(--text-muted); font-size: 14.5px; font-weight:500;
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.current{ color: var(--accent); }
.nav-toggle{ display:none; }

@media (max-width: 780px){
  .nav-links{
    position:absolute; top:64px; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 6px 24px 14px; display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child{ border-bottom:none; }
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px; border:1px solid var(--border-strong);
    background: transparent; color: var(--text); cursor:pointer;
  }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight:600; font-size:14.5px; font-family:'Inter',sans-serif;
  border:1px solid transparent; cursor:pointer; transition: border-color .15s, background .15s, color .15s;
}
.btn-primary{ background: linear-gradient(155deg, var(--accent), var(--accent-2)); color:#04131a; }
.btn-primary:hover{ color:#04131a; filter:brightness(1.06); }
.btn-ghost{ background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover{ border-color: var(--accent-line); color: var(--text); }

/* ---------- Hero ---------- */
.hero{ padding: 76px 0 56px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
.eyebrow-plain{ color: var(--text-muted); font-size:14.5px; margin-bottom:14px; }
.hero h1{ font-size: clamp(34px, 4.4vw, 50px); }
.hero p.lead{ color: var(--text-muted); font-size:17px; max-width:46ch; margin-top:16px; }
.hero-actions{ display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }

/* decorative player mock */
.player-mock{
  border:1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 18px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.player-mock .screen{
  aspect-ratio: 16/10; border-radius: 9px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(47,216,232,0.16), transparent 60%),
    #060a0e;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--border);
}
.play-glyph{
  width:52px; height:52px; border-radius:50%;
  background: rgba(255,255,255,0.06); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
}
.player-mock .bar-row{ display:flex; align-items:center; gap:10px; margin-top:16px; }
.scrub{ flex:1; height:4px; border-radius:2px; background: var(--border-strong); position:relative; overflow:hidden; }
.scrub::after{ content:""; position:absolute; inset:0; width:38%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.time{ font-family:'IBM Plex Mono', monospace; font-size:12px; color: var(--text-faint); }
.format-chips{ display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.chip{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; letter-spacing:.02em;
  padding:5px 9px; border-radius:6px; border:1px solid var(--border-strong);
  color: var(--text-muted); background: rgba(255,255,255,0.02);
}

/* ---------- Link cards grid ---------- */
.card-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; padding: 8px 0 88px; }
.doc-card{
  display:block; padding:22px; border-radius: var(--radius);
  border:1px solid var(--border); background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.doc-card:hover{ border-color: var(--accent-line); transform: translateY(-2px); color: var(--text); }
.doc-card .ic{ width:34px; height:34px; border-radius:8px; background: var(--accent-soft); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.doc-card h3{ font-size:16px; margin-bottom:6px; color:#f4f8fb; }
.doc-card p{ font-size:13.5px; color: var(--text-muted); margin:0; line-height:1.5; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .card-grid{ grid-template-columns: 1fr; }
}

/* ---------- Legal document layout ---------- */
.doc-header{ padding: 44px 0 28px; border-bottom: 1px solid var(--border); }
.doc-header h1{ font-size: clamp(26px, 3.4vw, 36px); }
.doc-meta{
  margin-top:22px; display:grid; grid-template-columns: repeat(4, auto);
  gap: 22px 34px; padding:18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border:1px solid var(--border);
}
.doc-meta div span{ display:block; }
.doc-meta .k{ font-size:11.5px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.doc-meta .v{ font-size:14px; color: var(--text); font-weight:500; }
.doc-meta .v a{ color: var(--accent); }

.doc-body{ display:grid; grid-template-columns: 240px 1fr; gap:56px; padding: 40px 0 100px; align-items:start; }
.toc{ position: sticky; top: 88px; }
.toc-label{ font-size:12px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.07em; margin-bottom:14px; }
.toc ol{ list-style:none; margin:0; padding:0; border-left:1px solid var(--border); }
.toc li{ margin:0; }
.toc a{
  display:block; padding:7px 0 7px 16px; margin-left:-1px;
  border-left: 1px solid transparent; color: var(--text-muted); font-size:13.5px;
}
.toc a:hover{ color: var(--text); border-left-color: var(--border-strong); }

.toc-mobile{ display:none; }
@media (max-width: 900px){
  .doc-body{ grid-template-columns: 1fr; gap:0; }
  .toc{ display:none; }
  .toc-mobile{
    display:block; margin-bottom: 28px; border:1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface); padding: 4px 16px;
  }
  .toc-mobile summary{ cursor:pointer; padding:12px 0; font-size:14px; font-weight:600; color:#f4f8fb; }
  .toc-mobile ol{ list-style:none; margin:0; padding: 0 0 14px; }
  .toc-mobile a{ display:block; padding:6px 0; color: var(--text-muted); font-size:13.5px; }
  .doc-meta{ grid-template-columns: 1fr 1fr; }
}

.content{ max-width: var(--content-measure); }
.content section{ padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--border); scroll-margin-top: 84px; }
.content section:last-child{ border-bottom:none; }
.content h2{ font-size:19px; margin-bottom:12px; display:flex; gap:10px; align-items:baseline; }
.content h2 .num{ font-family:'IBM Plex Mono', monospace; font-size:13px; color: var(--accent); font-weight:500; }
.content p{ color: var(--text-muted); margin: 0 0 14px; }
.content p:last-child{ margin-bottom:0; }
.content ul{ color: var(--text-muted); padding-left: 20px; margin: 0 0 14px; }
.content li{ margin-bottom:6px; }
.content strong{ color: var(--text); }

.note{
  border:1px solid var(--border-strong); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 13.5px; color: var(--text-muted); margin: 16px 0;
}
.note strong{ color: var(--text); }

.verify{
  border:1px dashed rgba(230,190,80,0.4); border-radius: var(--radius-sm);
  background: rgba(230,190,80,0.06); padding: 12px 15px; font-size:13px; color:#d9c98a; margin: 10px 0;
}

/* ---------- License table (open-source page) ---------- */
.lib-card{
  border:1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding:18px 20px; margin-bottom:14px;
}
.lib-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.lib-head h3{ font-size:15.5px; color:#f4f8fb; }
.lib-license{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color: var(--accent); border:1px solid var(--accent-line); background: var(--accent-soft); padding:3px 8px; border-radius:6px; white-space:nowrap; }
.lib-meta{ display:flex; gap:18px; flex-wrap:wrap; margin-top:10px; font-size:12.5px; color: var(--text-faint); font-family:'IBM Plex Mono', monospace; }
.lib-meta a{ color: var(--text-muted); }
.lib-group-title{ font-size:12px; text-transform:uppercase; letter-spacing:.07em; color: var(--text-faint); margin: 30px 0 14px; }
.lib-group-title:first-child{ margin-top:0; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin: 32px 0; }
.contact-card{ border:1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding:22px; }
.contact-card h3{ font-size:15px; margin-bottom:8px; color:#f4f8fb; }
.contact-card p{ font-size:13.5px; color: var(--text-muted); margin:0 0 12px; }
.contact-card .mail{ font-family:'IBM Plex Mono', monospace; font-size:13px; }
@media (max-width: 780px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 40px 0 46px; }
.footer-grid{ display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; }
.footer-brand{ font-family:'Sora',sans-serif; font-weight:600; color:#f4f8fb; font-size:14.5px; margin-bottom:6px; }
.footer-sub{ color: var(--text-faint); font-size:13px; max-width:38ch; }
.footer-links{ display:flex; gap:26px; list-style:none; margin:0; padding:0; flex-wrap:wrap; }
.footer-links a{ color: var(--text-muted); font-size:13.5px; }
.footer-links a:hover{ color: var(--text); }
.footer-bottom{ margin-top:28px; padding-top:20px; border-top:1px solid var(--border); color: var(--text-faint); font-size:12.5px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* ==========================================================================
   Responsive layout fixes — mobile + desktop
   ========================================================================== */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-width: 320px; }
img, svg, video, iframe { max-width: 100%; }

.wrap,
.site-nav .wrap,
.doc-header,
.doc-body {
  width: 100%;
  min-width: 0;
}

.wrap { padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }

.brand {
  min-width: 0;
  max-width: calc(100% - 56px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-mark { flex: 0 0 auto; }

.doc-header > *,
.doc-body > *,
.content,
.content section,
.doc-meta,
.doc-meta > div { min-width: 0; }

.doc-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.doc-meta .v,
.doc-meta .v a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content { width: 100%; }
.content p,
.content li,
.content a,
.toc a,
.toc-mobile a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (min-width: 901px) {
  .doc-body {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
  }
  .content { max-width: 72ch; }
}

@media (max-width: 900px) {
  .doc-header { padding-top: 34px; }
  .doc-body { padding-top: 28px; padding-bottom: 72px; }
  .doc-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .content { max-width: none; }
}

@media (max-width: 780px) {
  .site-nav .wrap { height: 60px; }
  .nav-links { top: 60px; padding-left: clamp(16px, 3vw, 24px); padding-right: clamp(16px, 3vw, 24px); }
  .nav-toggle { width: 40px; height: 40px; flex: 0 0 auto; }
  .doc-header h1 { font-size: clamp(30px, 8vw, 38px); }
  .doc-meta { margin-top: 18px; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 32px; }
}

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-nav .wrap { padding-left: 16px; padding-right: 16px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 25px; height: 25px; }

  .doc-header { padding-top: 28px; padding-bottom: 22px; }
  .doc-header h1 { font-size: 32px; line-height: 1.15; }
  .doc-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 17px 16px;
  }
  .doc-meta .k { font-size: 11px; }
  .doc-meta .v { font-size: 14px; line-height: 1.45; }
  .doc-header > p { font-size: 13px !important; }

  .doc-body { padding-top: 24px; padding-bottom: 56px; }
  .toc-mobile { margin-bottom: 24px; padding-left: 14px; padding-right: 14px; }
  .toc-mobile summary { font-size: 15px; }

  .content section { padding-bottom: 28px; margin-bottom: 28px; }
  .content h2 { font-size: 18px; gap: 8px; flex-wrap: wrap; }
  .content h2 .num { font-size: 12px; }
  .content p, .content li { font-size: 15px; line-height: 1.7; }

  .card-grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 56px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card, .doc-card { padding: 18px; }
  .footer-links { gap: 12px 20px; }
}

@media (max-width: 380px) {
  .brand { font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; }
  .doc-header h1 { font-size: 29px; }
  .content p, .content li { font-size: 14.5px; }
}

/* ---------- Enhanced privacy-policy visual system ---------- */
.policy-kicker{
  display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:16px; padding:7px 11px; border:1px solid var(--accent-line);
  border-radius:999px; background:var(--accent-soft); color:#a7f3f7;
  font-size:12px; font-weight:600; letter-spacing:.02em;
}
.status-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(47,216,232,.10); }
.kicker-sep{ color:var(--text-faint); }
.doc-lead{
  max-width:72ch; margin:18px 0 0; color:#a9b6c0; font-size:16px; line-height:1.75;
}
.policy-highlights{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:24px;
}
.highlight-card{
  display:flex; gap:12px; align-items:flex-start; min-width:0; padding:15px 16px;
  border:1px solid var(--border); border-radius:12px;
  background:linear-gradient(145deg,rgba(22,28,35,.92),rgba(12,17,22,.9));
  box-shadow:0 12px 34px rgba(0,0,0,.16);
}
.highlight-icon{
  width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center;
  border-radius:9px; color:#061419; background:linear-gradient(145deg,var(--accent),#5c91ff);
  font-weight:800;
}
.highlight-card strong{ display:block; color:#f4f8fb; font-size:13.5px; margin-bottom:2px; }
.highlight-card small{ display:block; color:var(--text-faint); font-size:12px; line-height:1.45; }
.policy-overview{ padding-top:20px; }
.policy-rail{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; overflow:hidden;
  border:1px solid var(--border); border-radius:14px;
  background:var(--border); box-shadow:0 16px 45px rgba(0,0,0,.14);
}
.policy-rail > div{ padding:14px 16px; background:rgba(18,23,29,.88); }
.rail-label{ display:block; color:var(--text-faint); font-size:10px; letter-spacing:.09em; font-weight:700; margin-bottom:4px; }
.policy-rail strong{ display:block; color:var(--text); font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.content section{
  position:relative; padding:24px 0 36px; margin-bottom:0;
}
.content section::before{
  content:""; position:absolute; left:-14px; top:27px; width:3px; height:28px;
  border-radius:3px; background:linear-gradient(180deg,var(--accent),var(--accent-2)); opacity:.8;
}
.content h2{ margin-bottom:14px; }
.content h2 .num{ min-width:25px; }
.content blockquote{
  margin:18px 0; padding:14px 16px; border-left:3px solid var(--accent);
  border-radius:0 10px 10px 0; background:var(--accent-soft); color:#b9c7d0;
}
.content ul li::marker{ color:var(--accent); }
.doc-header .doc-meta{ box-shadow:0 18px 50px rgba(0,0,0,.16); }
@media (hover:hover){
  .highlight-card{ transition:transform .18s ease,border-color .18s ease,background .18s ease; }
  .highlight-card:hover{ transform:translateY(-2px); border-color:var(--accent-line); background:linear-gradient(145deg,rgba(24,32,40,.98),rgba(12,17,22,.94)); }
}
@media (max-width:900px){
  .policy-highlights{ grid-template-columns:1fr; }
  .policy-rail{ grid-template-columns:1fr; }
  .policy-rail > div{ padding:12px 14px; }
  .content section::before{ left:-9px; }
}
@media (max-width:560px){
  .policy-kicker{ font-size:11px; }
  .doc-lead{ font-size:15px; line-height:1.7; }
  .policy-highlights{ gap:10px; margin-top:20px; }
  .highlight-card{ padding:13px; }
  .content section{ padding:22px 0 30px; }
  .content section::before{ display:none; }
}

/* ========================================================================== 
   v6 UI polish — smooth, responsive, accessible
   ========================================================================== */
:root{
  --shadow-soft: 0 18px 55px rgba(0,0,0,.28);
  --shadow-glow: 0 18px 70px rgba(47,216,232,.10);
  --ease: cubic-bezier(.22,1,.36,1);
}
body{ overflow-x:hidden; }
::selection{ background:rgba(47,216,232,.22); color:#fff; }
.site-nav{ box-shadow:0 10px 35px rgba(0,0,0,.12); }
.site-nav .wrap{ min-height:64px; }
.brand{ transition:transform .25s var(--ease); }
.brand:hover{ transform:translateY(-1px); color:#fff; }
.brand-mark{ box-shadow:0 8px 25px rgba(47,216,232,.18); }
.nav-links a{ position:relative; transition:color .2s var(--ease); }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:-7px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transition:right .28s var(--ease); }
.nav-links a:hover::after,.nav-links a.current::after{ right:0; }

.doc-header{ position:relative; isolation:isolate; overflow:visible; }
.doc-header::before{ content:""; position:absolute; width:360px; height:220px; right:-120px; top:-70px; border-radius:50%; background:rgba(47,216,232,.08); filter:blur(55px); pointer-events:none; z-index:-1; }
.doc-header h1{ font-size:clamp(34px,6vw,58px); letter-spacing:-.045em; }
.doc-lead{ max-width:760px; color:var(--text-muted); font-size:clamp(15px,2vw,18px); line-height:1.75; margin:16px 0 0; }
.policy-kicker{ display:inline-flex; align-items:center; gap:9px; margin-top:18px; padding:7px 11px; border:1px solid var(--border-strong); border-radius:999px; background:rgba(255,255,255,.025); color:var(--text-muted); font-size:12px; }
.status-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px rgba(47,216,232,.08),0 0 18px rgba(47,216,232,.55); }
.kicker-sep{ color:var(--text-faint); }
.policy-highlights{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0 16px; }
.highlight-card{ display:flex; gap:12px; align-items:flex-start; padding:15px; border:1px solid var(--border); border-radius:14px; background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); box-shadow:var(--shadow-soft); transition:transform .3s var(--ease),border-color .3s var(--ease),background .3s var(--ease); }
.highlight-card:hover{ transform:translateY(-3px); border-color:var(--accent-line); background:linear-gradient(145deg,rgba(47,216,232,.07),rgba(255,255,255,.015)); }
.highlight-card strong{ display:block; font-size:13.5px; color:#f4f8fb; }
.highlight-card small{ display:block; color:var(--text-faint); font-size:11.5px; line-height:1.45; margin-top:2px; }
.highlight-icon{ width:30px; height:30px; display:grid; place-items:center; flex:none; border-radius:9px; color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-line); }
.doc-meta{ box-shadow:var(--shadow-soft); backdrop-filter:blur(12px); }
.doc-meta .v{ overflow-wrap:anywhere; word-break:break-word; }
.doc-meta .v a{ overflow-wrap:anywhere; }
.policy-overview{ position:relative; z-index:2; }
.policy-rail{ display:grid; grid-template-columns:repeat(3,1fr); margin-top:-1px; border:1px solid var(--border); border-top:0; border-radius:0 0 16px 16px; overflow:hidden; background:rgba(18,23,29,.72); backdrop-filter:blur(16px); box-shadow:0 18px 45px rgba(0,0,0,.18); }
.policy-rail>div{ padding:14px 18px; border-right:1px solid var(--border); }
.policy-rail>div:last-child{ border-right:0; }
.rail-label{ display:block; color:var(--text-faint); font-size:10px; letter-spacing:.1em; margin-bottom:4px; }
.policy-rail strong{ font-size:13px; color:var(--text); }

.doc-body{ position:relative; }
.toc{ padding-top:3px; }
.toc a{ transition:color .2s var(--ease),border-color .2s var(--ease),padding-left .2s var(--ease); }
.toc a:hover{ padding-left:20px; }
.content section{ position:relative; transition:transform .35s var(--ease); }
.content section::before{ content:""; position:absolute; left:-18px; top:3px; width:2px; height:0; border-radius:3px; background:linear-gradient(var(--accent),var(--accent-2)); transition:height .35s var(--ease); }
.content section:hover::before{ height:28px; }
.content h2{ font-size:clamp(18px,2.2vw,22px); letter-spacing:-.02em; }
.content h2 .num{ padding:4px 7px; border-radius:7px; background:var(--accent-soft); border:1px solid rgba(47,216,232,.18); }
.content p,.content li{ font-size:15.5px; line-height:1.78; }
.note,.verify,.lib-card,.contact-card{ box-shadow:0 14px 40px rgba(0,0,0,.16); }
.note{ transition:border-color .25s var(--ease),transform .25s var(--ease); }
.note:hover{ border-color:var(--accent-line); transform:translateY(-2px); }

/* scroll progress + back-to-top */
.page-progress{ position:fixed; left:0; top:0; width:100%; height:3px; z-index:100; background:transparent; pointer-events:none; }
.page-progress span{ display:block; width:0; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); box-shadow:0 0 12px rgba(47,216,232,.5); }
.back-top{ position:fixed; right:20px; bottom:20px; width:42px; height:42px; border:1px solid var(--border-strong); border-radius:50%; background:rgba(18,23,29,.86); color:var(--text); display:grid; place-items:center; opacity:0; transform:translateY(12px); pointer-events:none; transition:opacity .25s var(--ease),transform .25s var(--ease),border-color .2s; backdrop-filter:blur(12px); box-shadow:var(--shadow-soft); z-index:50; cursor:pointer; }
.back-top.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.back-top:hover{ border-color:var(--accent-line); color:var(--accent); }

@media (max-width:900px){
  .policy-highlights{ grid-template-columns:1fr; }
  .policy-rail{ grid-template-columns:1fr; }
  .policy-rail>div{ border-right:0; border-bottom:1px solid var(--border); }
  .policy-rail>div:last-child{ border-bottom:0; }
  .content section::before{ display:none; }
}
@media (max-width:600px){
  .wrap{ padding-left:16px; padding-right:16px; }
  .site-nav .wrap{ height:58px; }
  .nav-links{ top:58px; padding-left:16px; padding-right:16px; }
  .doc-header{ padding-top:30px; }
  .doc-header h1{ font-size:36px; }
  .policy-kicker{ flex-wrap:wrap; border-radius:14px; }
  .doc-meta{ grid-template-columns:1fr; gap:14px; padding:16px; }
  .doc-body{ padding-top:24px; }
  .content p,.content li{ font-size:15px; }
  .content section{ padding-bottom:27px; margin-bottom:27px; }
  .back-top{ right:14px; bottom:14px; width:40px; height:40px; }
}
@media (prefers-reduced-motion:reduce){
  .highlight-card,.content section,.note,.back-top,.nav-links a::after,.brand{ transition:none; }
}
