:root {
    --bg: #f4f3f1; --fg: #121212; --muted: #5f5f5f;
    --line: rgba(0,0,0,0.12); --red: #e8231b;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--fg); font-family: var(--font); -webkit-font-smoothing: antialiased; max-width: 100%; overflow-x: clip; }

  .nav { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(24px,4vw,64px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: rgba(244,243,241,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .logo { display: inline-flex; align-items: center; }
  .logo img { height: 34px; width: auto; display: block; transition: height 0.3s ease; }
  .nav.scrolled .logo img { height: 28px; }
  .nav-back { display: inline-flex; align-items: center; gap: 10px; color: #555; text-decoration: none; font-size: 13px; letter-spacing: 0.06em; transition: color 0.2s ease; }
  .nav-back:hover { color: #111; }
  .nav-menu .nav-links { display: flex; gap: clamp(16px,1.9vw,38px); list-style: none; margin: 0; padding: 0; }
  .nav-links a { color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; opacity: 0.85; transition: color 0.18s ease, opacity 0.18s ease; }
  .nav-links a:hover, .nav-links a.active { color: var(--red); opacity: 1; }
  @media (max-width: 940px) { .nav-menu { display: none; } }
  .nav-back svg { width: 18px; height: 18px; }

  .legal { max-width: 820px; margin: 0 auto; padding: clamp(44px,5.5vw,84px) clamp(24px,4vw,32px) clamp(56px,6vw,96px); }
  .legal-eyebrow { font-size: 12px; letter-spacing: 0.18em; color: var(--red); font-weight: 600; margin-bottom: 18px; }
  .legal h1 { font-size: clamp(30px,4vw,52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: #0e0e0e; text-wrap: balance; overflow-wrap: break-word; }
  .legal-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: clamp(28px,3vw,40px) 0 clamp(36px,4vw,56px); }
  .legal-tab { background: none; border: 1px solid rgba(0,0,0,0.2); color: #555; font-family: inherit; font-size: 13px; letter-spacing: 0.04em; padding: 11px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
  .legal-tab:hover { color: #111; border-color: rgba(0,0,0,0.45); }
  .legal-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

  .doc { display: none; }
  .doc.show { display: block; }
  .doc h2 { font-size: clamp(22px,2.4vw,32px); font-weight: 700; color: #0e0e0e; letter-spacing: -0.015em; margin-bottom: 8px; }
  .doc .updated { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: clamp(28px,3vw,40px); }
  .doc section { padding: clamp(22px,2.4vw,30px) 0; border-top: 1px solid var(--line); }
  .doc section:first-of-type { border-top: none; padding-top: 0; }
  .doc h3 { font-size: clamp(16px,1.3vw,19px); font-weight: 700; color: #0e0e0e; margin-bottom: 12px; display: inline-flex; align-items: baseline; gap: 10px; }
  .doc h3 .n { color: var(--red); font-size: 14px; }
  .doc p { font-size: clamp(15px,1.1vw,16.5px); line-height: 1.72; color: #444; margin-bottom: 1em; text-wrap: pretty; }
  .doc ul { list-style: none; margin: 0 0 1em; padding: 0; }
  .doc li { position: relative; padding-left: 22px; font-size: clamp(14px,1.05vw,16px); line-height: 1.65; color: #4a4a4a; margin-bottom: 12px; }
  .doc li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
  .doc li b, .doc p b { color: #1a1a1a; font-weight: 600; }
  .doc a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
  .doc a:hover { color: var(--red); }

  .legal-foot { border-top: 1px solid var(--line); padding: clamp(36px,4vw,56px) clamp(24px,4vw,64px); text-align: center; }
  .legal-foot a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.06em; transition: color 0.2s ease; }
  .legal-foot a:hover { color: #111; }
