:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #dce7e3;
  --paper: #ffffff;
  --mist: #f3faf7;
  --green-950: #022c22;
  --green-800: #065f46;
  --green-600: #059669;
  --green-100: #d1fae5;
  --amber: #f59e0b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--mist);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 85% 8%, rgba(16,185,129,.13), transparent 24%), var(--mist); }
a { color: inherit; text-decoration: none; }
.legal-container { width: min(100% - 40px, 1080px); margin-inline: auto; }

.legal-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(2,44,34,.94); color: white; backdrop-filter: blur(16px); }
.legal-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 850; }
.legal-brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #10b981; color: white; font-family: serif; font-size: 26px; box-shadow: 0 10px 25px rgba(16,185,129,.24); }
.legal-nav-links { display: flex; align-items: center; gap: 8px; }
.legal-nav-links a { padding: 10px 13px; border-radius: 11px; color: #d1fae5; font-size: 12px; font-weight: 750; }
.legal-nav-links a:hover, .legal-nav-links a[aria-current="page"] { background: rgba(255,255,255,.11); color: white; }
.back-home { border: 1px solid rgba(255,255,255,.18); }

.legal-hero { padding: 90px 0 58px; color: white; background: linear-gradient(135deg, var(--green-950), var(--green-800)); overflow: hidden; }
.legal-hero-inner { position: relative; }
.legal-hero-inner::after { content: ""; position: absolute; right: 0; top: 50%; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.018); transform: translateY(-50%); }
.legal-kicker { display: inline-flex; align-items: center; gap: 8px; color: #a7f3d0; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.legal-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 99px; background: var(--amber); }
.legal-hero h1 { position: relative; z-index: 1; max-width: 780px; margin: 20px 0 18px; font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.legal-hero p { position: relative; z-index: 1; max-width: 720px; margin: 0; color: rgba(236,253,245,.76); font-size: 16px; line-height: 1.75; }
.legal-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.legal-meta span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.07); color: #d1fae5; font-size: 10px; font-weight: 750; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 34px; padding: 55px 0 90px; }
.legal-toc { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 18px 45px rgba(15,23,42,.07); backdrop-filter: blur(12px); }
.legal-toc strong { display: block; margin-bottom: 12px; color: var(--green-800); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 8px 0; border-bottom: 1px solid #edf2f0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: var(--green-600); }
.legal-document { min-width: 0; padding: 42px 48px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: 0 25px 65px rgba(15,23,42,.08); }
.legal-intro { margin: 0 0 36px; padding: 19px 21px; border-left: 4px solid var(--green-600); border-radius: 0 16px 16px 0; background: #ecfdf5; color: #285544; font-size: 13px; line-height: 1.75; }
.legal-section { scroll-margin-top: 110px; padding: 4px 0 30px; }
.legal-section + .legal-section { padding-top: 30px; border-top: 1px solid #e7eeeb; }
.legal-section h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.legal-section h3 { margin: 23px 0 9px; font-size: 16px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 14px; line-height: 1.82; }
.legal-section p { margin: 0 0 13px; }
.legal-section ul { margin: 12px 0 0; padding-left: 21px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--green-600); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { display: grid; gap: 9px; margin-top: 18px; padding: 20px; border: 1px solid var(--green-100); border-radius: 18px; background: #f0fdf4; }
.legal-contact strong { color: var(--green-800); }
.legal-note { padding: 15px 17px; border: 1px solid #fde68a; border-radius: 15px; background: #fffbeb; color: #785316 !important; }
.legal-action { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 14px 18px; border-radius: 13px; background: var(--green-800); color: white !important; font-size: 13px; font-weight: 800; text-decoration: none !important; box-shadow: 0 12px 28px rgba(6,95,70,.18); }
.legal-action:hover { background: var(--green-600); }
.legal-action-help { margin-top: 12px !important; font-size: 12px !important; }

.legal-footer { border-top: 1px solid var(--line); background: white; }
.legal-footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-footer-links a:hover { color: var(--green-600); }

@media (max-width: 800px) {
  .legal-nav { min-height: 68px; }
  .legal-nav-links a:not(.back-home) { display: none; }
  .legal-hero { padding: 70px 0 45px; }
  .legal-hero-inner::after { right: -150px; }
  .legal-layout { grid-template-columns: 1fr; padding-top: 32px; }
  .legal-toc { position: static; display: flex; overflow-x: auto; gap: 9px; padding: 12px; }
  .legal-toc strong { display: none; }
  .legal-toc a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; }
  .legal-document { padding: 30px 24px; border-radius: 23px; }
  .legal-footer-inner { padding: 28px 0; flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .legal-container { width: min(100% - 28px, 1080px); }
  .legal-brand { font-size: 15px; }
  .legal-brand-mark { width: 38px; height: 38px; }
  .back-home { padding-inline: 10px !important; }
  .legal-hero h1 { font-size: 43px; }
  .legal-document { padding: 26px 19px; }
  .legal-section h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
