:root {
  color-scheme: dark;
  --bg: #070910;
  --surface: rgba(16, 20, 32, .88);
  --surface-soft: rgba(255, 255, 255, .025);
  --line: rgba(255, 255, 255, .09);
  --text: #f3f6ff;
  --muted: #9aa2ba;
  --cyan: #4de8ff;
  --violet: #8a76ff;
  --green: #42e29a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.75; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.ambient { position: fixed; width: 440px; height: 440px; border-radius: 50%; filter: blur(120px); opacity: .13; pointer-events: none; }
.ambient.cyan { left: -220px; bottom: -220px; background: var(--cyan); }
.ambient.violet { right: -210px; top: -230px; background: #cf54ff; }
a { color: inherit; }

.topbar { min-height: 78px; padding: 14px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(7, 9, 16, .78); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(77, 232, 255, .22); border-radius: 14px; color: var(--cyan); background: linear-gradient(145deg, rgba(77,232,255,.09), rgba(138,118,255,.08)); font-size: 12px; font-weight: 900; letter-spacing: -.06em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a { padding: 8px 11px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--cyan); background: rgba(77,232,255,.07); }
.panel-link { border: 1px solid var(--line); }

.legal-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 90px; position: relative; }
.legal-hero { max-width: 850px; margin-bottom: 48px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 13px; font-weight: 850; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 11px; border: 1px solid rgba(66,226,154,.18); border-radius: 999px; color: var(--green); background: rgba(66,226,154,.06); font-size: 13px; font-weight: 700; }
.updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.contents { position: sticky; top: 104px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); backdrop-filter: blur(15px); }
.contents strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .1em; color: #c8cede; }
.contents nav { display: flex; flex-direction: column; gap: 3px; }
.contents a { padding: 7px 9px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.contents a:hover { color: var(--text); border-left-color: var(--cyan); background: rgba(77,232,255,.04); }
.legal-card { padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: 0 28px 80px rgba(0,0,0,.24); backdrop-filter: blur(16px); }
.legal-card section { scroll-margin-top: 110px; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.legal-card section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-card h2 { margin: 0 0 13px; font-size: clamp(22px, 3vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.legal-card h3 { margin: 22px 0 8px; font-size: 18px; }
.legal-card p { margin: 0 0 14px; color: #c2c8d8; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { margin: 12px 0 0; padding-left: 22px; color: #c2c8d8; }
.legal-card li { margin: 8px 0; padding-left: 4px; }
.legal-card li::marker { color: var(--cyan); }
.notice { padding: 16px 18px; border: 1px solid rgba(138,118,255,.2); border-radius: 15px; background: rgba(138,118,255,.07); color: #d9d5ff !important; }
.legal-card a { color: var(--cyan); text-underline-offset: 3px; }

footer { min-height: 92px; padding: 24px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

@media (max-width: 820px) {
  .topbar { align-items: flex-start; }
  .topnav { flex-wrap: wrap; justify-content: flex-end; }
  .legal-shell { padding-top: 48px; }
  .legal-grid { grid-template-columns: 1fr; }
  .contents { position: static; }
  .contents nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { padding: 13px 16px; flex-direction: column; gap: 12px; }
  .topnav { width: 100%; justify-content: flex-start; }
  .topnav a { padding: 7px 8px; font-size: 13px; }
  .legal-shell { width: min(100% - 28px, 1180px); padding: 38px 0 64px; }
  .legal-hero { margin-bottom: 32px; }
  .lead { font-size: 16px; }
  .contents nav { grid-template-columns: 1fr; }
  .legal-card { padding: 23px 19px; border-radius: 20px; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-direction: column; gap: 8px; }
}
