
    :root {
      --primary: #60a5fa;
      --primary-soft: rgba(96, 165, 250, 0.14);
      --accent: #e4b84a;
      --bg: #0c1a30;
      --bg-elevated: #12233d;
      --bg-soft: rgba(255, 255, 255, 0.04);
      --text: #e8eef7;
      --text-body: #d5deeb;
      --muted: #9aadc4;
      --border: rgba(148, 163, 184, 0.22);
      --border-soft: rgba(148, 163, 184, 0.14);
      --focus: #93c5fd;
      --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
      --font-display: 'Fraunces', Georgia, serif;
      --header-h: 72px;
      --read-max: 48rem;
      --page-max: 73.75rem;
    }
    * { box-sizing: border-box; }
    html {
      color-scheme: dark;
      scroll-behavior: smooth;
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
    body {
      margin: 0;
      font-family: var(--font-sans);
      color: var(--text);
      background: var(--bg);
      line-height: 1.7;
      overflow-x: hidden;
    }
    a {
      color: #93c5fd;
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 0.18em;
      text-decoration-thickness: 1px;
    }
    a:hover { color: #bfdbfe; }
    a:focus-visible {
      outline: 2px solid var(--focus);
      outline-offset: 3px;
      border-radius: 2px;
    }
    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(12, 26, 48, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-soft);
      padding: 0;
    }
    .topbar-inner {
      width: min(var(--page-max), calc(100% - 2rem));
      margin: auto;
      min-height: var(--header-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.65rem 0;
    }
    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .logo-mark {
      display: flex;
      align-items: center;
      line-height: 0;
      text-decoration: none;
    }
    .logo-mark img {
      height: 40px;
      width: auto;
      object-fit: contain;
      display: block;
    }
    .topbar-back {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--text) !important;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.04);
      text-decoration: none !important;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .topbar-back:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #bfdbfe !important;
      border-color: rgba(96, 165, 250, 0.4);
    }
    .topbar-back .ph { font-size: 1.1rem; }
    .lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 4px;
    }
    .lang-btn {
      border: 1px solid transparent;
      cursor: pointer;
      padding: 0.45rem 0.65rem;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
      background: transparent;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
      font-family: inherit;
    }
    .lang-btn img {
      width: 22px;
      height: 14px;
      object-fit: cover;
      border-radius: 2px;
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
    .lang-btn:hover { color: var(--text); }
    .lang-btn.active {
      background: var(--primary-soft);
      color: #dbeafe;
      border-color: rgba(96, 165, 250, 0.45);
    }
    .lang-btn:focus-visible {
      outline: 2px solid var(--focus);
      outline-offset: 2px;
    }

    .legal-shell {
      width: min(var(--page-max), calc(100% - 2rem));
      margin: 0 auto;
      padding: 2rem 0 4rem;
    }
    .toc-toggle {
      display: none;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin: 0 0 1.25rem;
      padding: 0.85rem 1rem;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--bg-elevated);
      color: var(--text);
      font: inherit;
      font-weight: 600;
      cursor: pointer;
    }
    .toc-toggle .ph { color: var(--primary); font-size: 1.1rem; }
    .toc-toggle:focus-visible {
      outline: 2px solid var(--focus);
      outline-offset: 2px;
    }
    .legal-layout {
      display: grid;
      grid-template-columns: minmax(12rem, 15.5rem) minmax(0, 1fr);
      gap: clamp(1.5rem, 3vw, 2.75rem);
      align-items: start;
    }
    .legal-toc {
      position: sticky;
      top: calc(var(--header-h) + 1rem);
      max-height: calc(100vh - var(--header-h) - 2rem);
      overflow: visible;
      padding: 0.25rem 0;
    }
    .legal-toc-title {
      margin: 0 0 0.85rem;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .legal-toc ol {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.15rem;
    }
    .legal-toc a {
      display: block;
      padding: 0.45rem 0.7rem;
      border-radius: 10px;
      border-left: 2px solid transparent;
      color: var(--muted);
      font-size: 0.84rem;
      font-weight: 500;
      line-height: 1.35;
      text-decoration: none;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .legal-toc a:hover {
      color: #e2e8f0;
      background: rgba(255, 255, 255, 0.04);
    }
    .legal-toc a[aria-current="true"] {
      color: #dbeafe;
      background: var(--primary-soft);
      border-left-color: #60a5fa;
      font-weight: 600;
    }

    .legal-doc {
      min-width: 0;
      max-width: var(--read-max);
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
    }

    .doc-hero {
      margin-bottom: 1.75rem;
      padding-bottom: 1.5rem;
      border-bottom: 1px solid var(--border-soft);
    }
    .doc-eyebrow {
      display: inline-flex;
      align-items: center;
      margin: 0 0 0.85rem;
      padding: 0.28rem 0.65rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.03);
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .doc-title-row {
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      margin-bottom: 1.15rem;
      min-width: 0;
    }
    .doc-shield {
      flex-shrink: 0;
      width: 2.35rem;
      height: 2.35rem;
      margin-top: 0.2rem;
      color: #60a5fa;
    }
    .doc-shield svg { display: block; width: 100%; height: 100%; }
    .legal-doc h1 {
      flex: 1 1 auto;
      min-width: 0;
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 4vw, 2.55rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin: 0;
      color: #ffffff;
      overflow-wrap: anywhere;
      word-break: break-word;
      max-width: 100%;
    }
    .doc-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.55rem 0.65rem;
      margin: 0;
    }
    .doc-meta > div {
      display: grid;
      gap: 0.12rem;
      min-width: 9.5rem;
      padding: 0.55rem 0.75rem;
      border-radius: 12px;
      border: 1px solid var(--border-soft);
      background: rgba(255, 255, 255, 0.03);
    }
    .doc-meta dt {
      margin: 0;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .doc-meta dd {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text);
      word-break: break-word;
    }
    .doc-meta a {
      color: #bfdbfe;
      font-weight: 600;
    }

    .doc-summary {
      margin: 0 0 1.35rem;
      padding: 1.15rem 1.2rem 1.2rem;
      border-radius: 18px;
      border: 1px solid rgba(96, 165, 250, 0.28);
      background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.02));
    }
    .doc-summary h2 {
      margin: 0 0 0.75rem;
      font-size: 1.05rem;
      color: #ffffff;
      border: none;
      padding: 0;
    }
    .doc-summary ul {
      margin: 0 0 0.85rem;
      padding-left: 1.15rem;
    }
    .doc-summary li {
      margin: 0.35rem 0;
      color: var(--text-body);
      font-size: 0.95rem;
    }
    .doc-summary-note {
      margin: 0;
      font-size: 0.84rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .apple-policy-callout {
      display: flex;
      align-items: flex-start;
      gap: 0.7rem;
      margin: 0 0 1.5rem;
      padding: 0.8rem 0.95rem;
      border-radius: 14px;
      border: 1px solid var(--border-soft);
      background: var(--bg-soft);
      font-size: 0.9rem;
      color: var(--text-body);
      line-height: 1.55;
    }
    .apple-policy-callout .ph {
      flex-shrink: 0;
      margin-top: 0.12rem;
      color: var(--muted);
      font-size: 1.15rem;
    }
    .apple-policy-callout a { word-break: break-word; }

    .doc-intro {
      margin: 0 0 1.75rem;
      color: var(--text-body);
      font-size: 1.05rem;
      max-width: 42rem;
    }

    .legal-section {
      margin: 0 0 0.25rem;
      padding: 1.65rem 0 1.55rem;
      border-top: 1px solid var(--border-soft);
      scroll-margin-top: calc(var(--header-h) + 1rem);
    }
    .legal-section:first-of-type { border-top: none; padding-top: 0.35rem; }
    .legal-section h2 {
      display: flex;
      align-items: baseline;
      gap: 0.7rem;
      margin: 0 0 0.9rem;
      font-family: var(--font-sans);
      font-size: clamp(1.15rem, 2.2vw, 1.35rem);
      font-weight: 700;
      line-height: 1.3;
      color: #bfdbfe;
      letter-spacing: -0.015em;
    }
    .sec-num {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.85rem;
      height: 1.85rem;
      padding: 0 0.35rem;
      border-radius: 8px;
      background: var(--primary-soft);
      color: #93c5fd;
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1;
    }
    .sec-title { min-width: 0; }
    .legal-doc p,
    .legal-doc li {
      font-size: 1.0625rem;
      color: var(--text-body);
      line-height: 1.72;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .legal-doc a { overflow-wrap: anywhere; }
    .legal-doc p { margin: 0 0 0.95rem; }
    .legal-doc p:last-child { margin-bottom: 0; }
    .legal-doc ul {
      margin: 0 0 0.95rem;
      padding-left: 1.25rem;
    }
    .legal-doc li { margin: 0.4rem 0; }
    .legal-doc strong { color: #f1f5f9; font-weight: 650; }

    .info-box {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin: 1rem 0;
      padding: 0.95rem 1rem;
      border-radius: 14px;
      border: 1px solid var(--border-soft);
      background: rgba(255, 255, 255, 0.035);
    }
    .info-box .ph {
      flex-shrink: 0;
      margin-top: 0.12rem;
      font-size: 1.25rem;
      color: #60a5fa;
    }
    .info-box.info-box--accent .ph { color: var(--accent); }
    .info-box p {
      margin: 0;
      font-size: 0.98rem;
    }

    .doc-related {
      margin: 1.75rem 0 0;
      padding: 0.95rem 1rem;
      border-radius: 14px;
      border: 1px solid var(--border-soft);
      background: rgba(255, 255, 255, 0.03);
      font-size: 0.95rem;
      color: var(--text-body);
      line-height: 1.55;
    }
    .back-top {
      margin: 2.25rem 0 0;
      padding-top: 1.25rem;
      border-top: 1px solid var(--border-soft);
    }
    .back-top a {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--muted);
      font-size: 0.92rem;
      font-weight: 600;
      text-decoration: none;
    }
    .back-top a:hover { color: #bfdbfe; text-decoration: underline; }

    footer {
      background: linear-gradient(180deg, #12233d 0%, #0a1424 100%);
      color: rgba(255, 255, 255, 0.82);
      padding: 2rem 0;
      text-align: center;
      font-size: 0.88rem;
      border-top: 1px solid var(--border-soft);
    }
    footer a { color: #fff; }
    footer p {
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .footer-contact {
      display: inline-flex;
      align-items: center;
    }
    .footer-contact a[hidden] {
      display: none !important;
    }

    @media (max-width: 1024px) {
      .legal-layout {
        grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
        gap: 1.5rem;
      }
    }

    @media (max-width: 800px) {
      .toc-toggle { display: inline-flex; }
      .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
      }
      .legal-toc {
        position: static;
        max-height: none;
        display: none;
        margin: 0 0 1.5rem;
        padding: 0.85rem;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: var(--bg-elevated);
      }
      .legal-toc.is-open { display: block; }
      .legal-doc p,
      .legal-doc li { font-size: 1rem; }
      .doc-intro { font-size: 1rem; }
      .legal-shell {
        width: 100%;
        padding: 1.35rem max(4vw, 0.85rem) 3.25rem;
      }
      .topbar-inner {
        width: 100%;
        padding-left: max(4vw, 0.85rem);
        padding-right: max(4vw, 0.85rem);
      }
    }

    @media (max-width: 720px) {
      .topbar .topbar-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
          "logo back"
          "lang lang";
        align-items: center;
        gap: 0.65rem 0.75rem;
      }
      .logo-mark { grid-area: logo; }
      .logo-mark img { height: 34px; }
      .topbar-actions { display: contents; }
      .topbar .lang-switch {
        grid-area: lang;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
        gap: 4px;
        padding: 4px;
      }
      .lang-btn {
        justify-content: center;
        min-width: 0;
        padding: 0.4rem 0.35rem;
        font-size: 0.72rem;
      }
      .topbar-back {
        grid-area: back;
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
      }
      .doc-meta > div { min-width: calc(50% - 0.35rem); flex: 1 1 9rem; }
    }

    @media (max-width: 380px) {
      .lang-btn .lang-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .lang-btn { padding: 0.45rem; }
    }
  

    .legal-shell {
      position: relative;
    }
    .legal-shell::before {
      content: '';
      position: absolute;
      inset: -2rem -10% auto;
      height: 18rem;
      pointer-events: none;
      background:
        radial-gradient(ellipse 55% 70% at 18% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
        radial-gradient(ellipse 45% 60% at 78% 8%, rgba(139, 92, 246, 0.12), transparent 72%);
      z-index: 0;
    }
    .legal-shell > * { position: relative; z-index: 1; }


    /* Keep privacy page on the dark legal palette even if shared CSS shifts. */
    body.legal-page {
      background: #0c1a30 !important;
      color: #e8eef7 !important;
      overflow-x: hidden !important;
    }
    body.legal-page .topbar {
      background: rgba(12, 26, 48, 0.92) !important;
      border-bottom-color: rgba(148, 163, 184, 0.14) !important;
    }
    body.legal-page .legal-doc,
    body.legal-page .doc {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }
    body.legal-page .wrap { width: auto; max-width: none; padding: 0; }
  
