/* Shared by index.html, privacy.html and terms.html. */
  :root {
    --primary: #FF8C4B;
    --primary-strong: #EA580C;
    --primary-dark: #C2410C;
    --primary-soft: #FFF1E8;
    --teal: #14B8A6;
    --teal-dark: #0F766E;
    --teal-soft: #E6FAF7;
    --violet: #8B5CF6;
    --violet-soft: #F1ECFF;
    --coral-soft: #FFECEC;
    --bg: #F8FAFC;
    --bg-alt: #FFFFFF;
    --card: #FFFFFF;
    --border: #EEEEF2;
    --text: #1E293B;
    --text-2: #475569;
    --text-3: #64748B;
    --shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
    --radius: 24px;
    --link: #C2410C;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --primary-soft: #3A2417;
      --teal-soft: #11302C;
      --violet-soft: #251E3D;
      --coral-soft: #3A1F22;
      --bg: #0F172A;
      --bg-alt: #131C31;
      --card: #1A2338;
      --border: #26314A;
      --text: #F1F5F9;
      --text-2: #CBD5E1;
      --text-3: #94A3B8;
      --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
      --link: #FF8C4B;
    }
  }
  :root[data-theme="dark"] {
    --primary-soft: #3A2417;
    --teal-soft: #11302C;
    --violet-soft: #251E3D;
    --coral-soft: #3A1F22;
    --bg: #0F172A;
    --bg-alt: #131C31;
    --card: #1A2338;
    --border: #26314A;
    --text: #F1F5F9;
    --text-2: #CBD5E1;
    --text-3: #94A3B8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --link: #FF8C4B;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 720px) { .wrap { padding: 0 24px; } }

  /* Nav */
  .nav {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.35rem; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { display: none; gap: 28px; font-weight: 700; color: var(--text-2); }
  .nav-links a { text-decoration: none; }
  .nav-links a:hover { color: var(--primary-strong); }
  @media (min-width: 860px) { .nav-links { display: flex; } }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 16px; font-weight: 800; font-size: 1rem;
    text-decoration: none; border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .btn:active { transform: translateY(3px); }
  .btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 5px 0 var(--primary-dark); }
  .btn-primary:active { box-shadow: 0 2px 0 var(--primary-dark); }
  .btn-small { padding: 9px 16px; border-radius: 12px; font-size: 0.92rem; box-shadow: 0 3px 0 var(--primary-dark); }
  .btn-ghost { background: var(--card); color: var(--text); border: 2px solid var(--border); }
  .store {
    display: inline-flex; align-items: center; gap: 12px;
    background: #000; color: #fff; text-decoration: none;
    padding: 10px 22px 10px 18px; border-radius: 14px; border: 1px solid #3a3a3a;
  }
  .store svg { width: 28px; height: 28px; flex: none; }
  .store small { display: block; font-size: 0.72rem; line-height: 1.1; opacity: .85; font-weight: 600; }
  .store strong { display: block; font-size: 1.25rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

  /* Footer */
  footer { padding: 48px 0 40px; color: var(--text-3); font-size: .95rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
  footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; }
  footer nav a { text-decoration: none; }
  footer nav a:hover { color: var(--primary-strong); }
  footer nav a[aria-current="page"] { color: var(--primary-strong); }

  /* Legal pages (privacy.html, terms.html) */
  .doc { max-width: 760px; padding-top: 48px; padding-bottom: 32px; }
  .doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 900; margin: 0 0 8px; }
  .doc h2 { font-size: 1.35rem; font-weight: 900; margin: 2.2em 0 0.5em; padding-top: 1em; border-top: 1px solid var(--border); }
  .doc h3 { font-size: 1.08rem; font-weight: 800; margin: 1.5em 0 0.4em; }
  .doc p, .doc ul { margin: 0 0 1em; color: var(--text-2); }
  .doc strong { color: var(--text); }
  .doc ul { padding-left: 1.3em; }
  .doc li { margin-bottom: 0.4em; }
  .doc a { color: var(--link); font-weight: 700; }
  .doc .meta { color: var(--text-3); font-weight: 700; font-size: 0.95rem; margin-bottom: 1.8em; }
  .doc .note { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 12px; color: var(--text); }
  .doc .caps { font-weight: 700; }
  .doc .table-wrap { overflow-x: auto; margin-bottom: 1em; border: 1px solid var(--border); border-radius: 14px; }
  .doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
  .doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
  .doc tr:last-child td { border-bottom: 0; }
  .doc th { background: var(--bg-alt); color: var(--text); font-weight: 800; }
