:root {
  --ink: #0b1720;
  --paper: #f4f7f8;
  --surface: #ffffff;
  --surface-muted: #eaf0f1;
  --line: #d7e1e3;
  --line-dark: #b5c6ca;
  --text: #132833;
  --muted: #526773;
  --muted-strong: #3d5662;
  --accent: #0a7c8c;
  --accent-deep: #065e6b;
  --accent-soft: #d9eef0;
  --max: 1040px;
  --gutter: 24px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: "Satoshi", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--ink); background: #a8dce1; }

.container { width: calc(100% - 48px); max-width: var(--max); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(244, 247, 248, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; min-height: 38px; align-items: center; flex: 0 0 auto; }
.brand__word { display: grid; align-content: center; line-height: 1; }
.brand__name { color: var(--ink); font-size: 1.03rem; font-weight: 800; letter-spacing: .075em; }
.brand__tag { margin-top: 5px; color: var(--accent-deep); font-size: .53rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.back-link { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--ink); background: var(--surface); font-size: .82rem; font-weight: 700; transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.back-link:hover { color: var(--accent-deep); border-color: var(--accent); transform: translateY(-1px); }

.legal-hero { padding: clamp(66px, 9vw, 108px) 0 clamp(44px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.legal-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .35fr); align-items: end; gap: 44px; }
.legal-kicker { margin: 0 0 18px; color: var(--accent-deep); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-title { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(2.55rem, 6vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.legal-intro { max-width: 68ch; margin: 26px 0 0; color: var(--muted-strong); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.legal-meta { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-meta span, .legal-meta strong { display: block; }
.legal-meta span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-meta strong { margin-top: 5px; color: var(--ink); font-size: .9rem; }
.legal-meta span + strong + span { margin-top: 16px; }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(42px, 7vw, 84px); padding: clamp(58px, 8vw, 100px) 0; }
.legal-nav { position: sticky; top: 104px; }
.legal-nav h2 { margin: 0 0 14px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: legal-nav; }
.legal-nav li { counter-increment: legal-nav; }
.legal-nav a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 7px 0; color: var(--muted-strong); font-size: .8rem; line-height: 1.35; }
.legal-nav a::before { content: counter(legal-nav, decimal-leading-zero); color: var(--accent); font-size: .68rem; font-weight: 800; }
.legal-nav a:hover { color: var(--ink); }

.legal-content { min-width: 0; }
.legal-notice { margin: 0 0 44px; padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted-strong); background: var(--accent-soft); font-size: .9rem; }
.legal-section { padding: 0 0 42px; margin: 0 0 42px; border-bottom: 1px solid var(--line); scroll-margin-top: 105px; }
.legal-section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-section h2 { margin: 0 0 17px; color: var(--ink); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
.legal-section h3 { margin: 26px 0 10px; color: var(--ink); font-size: 1rem; }
.legal-section p { margin: 0 0 15px; color: var(--muted-strong); }
.legal-section ul { display: grid; gap: 10px; margin: 16px 0; padding-left: 20px; color: var(--muted-strong); }
.legal-section li::marker { color: var(--accent); }
.legal-section a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.security-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.security-card strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: .9rem; }
.security-card p { margin: 0; font-size: .82rem; }

.footer { color: #e8f1f2; background: var(--ink); }
.footer__inner { display: flex; min-height: 128px; align-items: center; justify-content: space-between; gap: 28px; padding-block: 30px; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: #9bdde2; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; color: #b8c8cc; font-size: .78rem; }
.footer__links a:hover { color: #fff; }

@media (max-width: 780px) {
  :root { --gutter: 16px; }
  .container { width: calc(100% - 32px); }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .legal-hero__inner, .legal-layout { grid-template-columns: 1fr; }
  .legal-hero__inner { gap: 30px; }
  .legal-meta { max-width: 360px; }
  .legal-layout { gap: 34px; }
  .legal-nav { position: static; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .legal-nav ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 18px; }
  .security-grid { grid-template-columns: 1fr; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .footer__links { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .header__inner { min-height: 68px; }
  .back-link { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .back-link svg { width: 17px; height: 17px; }
  .legal-title { font-size: clamp(2.35rem, 13vw, 3.4rem); }
  .legal-nav ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
