/* =========================================================
   legal-style.css — static / legal / info pages
   Used by: index, about-us, faq, contact-us,
            terms-of-service, privacy-policy, error404
   Load with core.css (no Bootstrap required).
   ========================================================= */

/* Sticky footer layout (replaces Bootstrap utilities) */
body.flex-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.flex-layout > .mt-auto {
  margin-top: auto;
}

body.flex-layout > main.flex-grow-1,
body.flex-layout > .flex-grow-1 {
  flex: 1 0 auto;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

/* Shared mobile gutters for legal / info pages */
@media (max-width: 768px) {
  body.tos-page,
  body.pp-page {
    overflow-x: hidden;
  }

  body.about-page .about-wrap,
  body.faq-page .faq-wrap,
  body.tos-page main.tos-wrap,
  body.pp-page main.pp-wrap,
  body.contact-page .contact-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  body.tos-page .tos-wrap > div:has(.tos-intro-strip),
  body.pp-page .pp-wrap > div:has(.pp-intro-strip) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  body.tos-page .tos-hero,
  body.pp-page .pp-hero,
  body.tos-page .tos-layout,
  body.pp-page .pp-layout {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  body.tos-page .tos-content,
  body.pp-page .pp-content,
  body.tos-page .tos-toc,
  body.pp-page .pp-toc {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.tos-page .tos-intro-strip,
  body.pp-page .pp-intro-strip {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Contact form loading overlay */
.page-contact .overlaymenu,
body.contact-page .overlaymenu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.page-contact .overlay-content,
body.contact-page .overlay-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 24px 40px;
  text-align: center;
}

.page-contact .overlay-content img,
body.contact-page .overlay-content img {
  width: 60px;
}

.page-contact .overlay-content .message,
body.contact-page .overlay-content .message {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  font-weight: 700;
}

/* ===== about-us.html ===== */
body.about-page {
        --ink: #1a1a2e;
        --ink-mid: #3d3d56;
        --ink-light: #5c5c78;
        --accent: #2196f3;
        --accent-hover: #1976d2;
        --accent-soft: #e8f4fd;
        --rule: #e4e4ee;
        --rule-strong: #1a1a2e;
        --bg: #f4f5f9;
        --card-bg: #ffffff;
        --card-shadow: 0 4px 24px rgba(26, 26, 46, 0.06), 0 1px 3px rgba(26, 26, 46, 0.04);
        --content-max: 900px;
        --serif: system-ui, "Georgia", "Times New Roman", serif;
        --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      body.about-page {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--sans);
        -webkit-font-smoothing: antialiased;
      }

      .about-wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px 48px;
      }

      /* ── Hero (above the card, matches screenshot) ── */
      .about-hero {
        max-width: var(--content-max);
        margin: 48px auto 0;
        padding: 0 4px 22px;
        border-bottom: 2px solid var(--rule-strong);
      }

      .about-hero-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 6px 12px;
        border-radius: 6px;
        margin-bottom: 16px;
        display: inline-block;
      }

      .about-hero h1 {
        font-family: var(--serif);
        font-size: clamp(2.4rem, 5.5vw, 3.25rem);
        font-weight: 600;
        letter-spacing: -0.025em;
        line-height: 1.08;
        margin: 0 0 14px;
        color: var(--ink);
      }

      .about-tagline {
        font-size: 1.125rem;
        font-weight: 400;
        color: var(--ink-light);
        line-height: 1.55;
        margin: 0;
        max-width: 42rem;
      }

      /* ── Main content card ── */
      .about-body {
        max-width: var(--content-max);
        margin: 32px auto 0;
        padding: 44px 48px 48px;
        background: var(--card-bg);
        border: 1px solid var(--rule);
        border-radius: 16px;
        box-shadow: var(--card-shadow);
      }

      .about-intro {
        font-size: 15px;
        line-height: 1.8;
        color: var(--ink-light);
        margin: 0 0 40px;
        padding-bottom: 36px;
        border-bottom: 1px solid var(--rule);
      }

      .about-body section {
        margin-bottom: 40px;
      }

      .about-body section:last-child {
        margin-bottom: 0;
      }

      .about-body h2 {
        font-family: var(--serif);
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--ink);
        margin: 0 0 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--rule);
        letter-spacing: -0.01em;
      }

      .about-body h3 {
        font-family: var(--sans);
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--ink);
        margin: 28px 0 12px;
        line-height: 1.35;
      }

      .about-body h3:first-of-type {
        margin-top: 8px;
      }

      .about-body p {
        font-size: 15px;
        line-height: 1.8;
        color: var(--ink-light);
        margin: 0 0 16px;
      }

      .about-body section > p:last-child,
      .about-body .subsection > p:last-child {
        margin-bottom: 0;
      }

      .about-body ul {
        margin: 12px 0 20px;
        padding: 0;
        list-style: none;
      }

      .about-body ul li {
        font-size: 15px;
        line-height: 1.75;
        color: var(--ink-light);
        padding: 10px 0 10px 22px;
        position: relative;
        border-bottom: 1px solid rgba(228, 228, 238, 0.6);
      }

      .about-body ul li:last-child {
        border-bottom: none;
        padding-bottom: 0;
      }

      .about-body ul li::before {
        content: '';
        position: absolute;
        left: 2px;
        top: 18px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.65;
      }

      .about-body a {
        color: var(--accent);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
        text-decoration-thickness: 1px;
        transition: color 0.15s ease;
      }

      .about-body a:hover {
        color: var(--accent-hover);
      }

      .about-closing {
        font-family: var(--serif);
        font-size: 1.0625rem;
        font-style: italic;
        font-weight: 400;
        color: var(--ink-mid);
        line-height: 1.65;
        border-left: 4px solid var(--accent);
        padding: 4px 0 4px 20px;
        margin: 20px 0 0;
        background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
        border-radius: 0 8px 8px 0;
      }

      @media (max-width: 768px) {
        .about-wrap {
          padding: 0 max(20px, env(safe-area-inset-left, 0px)) 32px;
        }

        .about-hero {
          margin-top: 28px;
          padding-bottom: 18px;
        }

        .about-body {
          margin-top: 24px;
          padding: 28px 22px 32px;
          border-radius: 12px;
        }

        .about-intro {
          margin-bottom: 28px;
          padding-bottom: 24px;
        }

        .about-body section {
          margin-bottom: 32px;
        }

        .about-body h2 {
          font-size: 1.3rem;
        }
      }

/* ===== faq.html ===== */
body.faq-page {
        --ink: #1a1a2e;
        --ink-light: #4a4a6a;
        --accent: #7c3aed;
        --accent-soft: #f5f3ff;
        --rule: #e8e8f0;
        --bg: #f8f8fc;
        --card-bg: #ffffff;
        --serif: system-ui, "Georgia", "Times New Roman", serif;
        --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      body.faq-page {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--sans);
      }

      .faq-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
      }

      /* Hero */
      .faq-hero {
        max-width: 800px;
        margin: 56px auto 0;
        padding: 0 12px 28px;
        text-align: center;
        border-bottom: 2px solid var(--ink);
      }

      .faq-hero-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 4px 12px;
        border-radius: 20px;
        display: inline-block;
        margin-bottom: 14px;
      }

      .faq-hero h1 {
        font-family: var(--serif);
        font-size: clamp(2rem, 5vw, 3.2rem);
        font-weight: 600;
        color: var(--ink);
        margin: 0 0 12px;
        letter-spacing: -0.02em;
      }

      .faq-hero p {
        font-size: 15px;
        color: var(--ink-light);
        max-width: 520px;
        margin: 0 auto;
        line-height: 1.7;
      }

      /* Category filter pills */
      .faq-filter {
        max-width: 800px;
        margin: 32px auto 0;
        padding: 0 12px;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .faq-pill {
        padding: 6px 16px;
        border-radius: 20px;
        border: 1.5px solid var(--rule);
        background: var(--card-bg);
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-light);
        cursor: pointer;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
        user-select: none;
      }

      .faq-pill:hover,
      .faq-pill.active {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-soft);
      }

      /* Main layout */
      .faq-body {
        max-width: 800px;
        margin: 40px auto 72px;
        padding: 0 12px;
      }

      /* Category section */
      .faq-category {
        margin-bottom: 48px;
      }

      .faq-category-title {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--ink-light);
        padding: 0 0 12px;
        border-bottom: 1px solid var(--rule);
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .faq-category-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        background: var(--accent-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
      }

      /* Accordion */
      .faq-item {
        border-bottom: 1px solid var(--rule);
      }

      .faq-question {
        width: 100%;
        background: none;
        border: none;
        padding: 18px 0;
        text-align: left;
        font-family: var(--sans);
        font-size: 15px;
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        transition: color 0.15s;
      }

      .faq-question:hover {
        color: var(--accent);
      }

      .faq-chevron {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--rule);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s, transform 0.25s;
        font-size: 10px;
        color: var(--ink-light);
      }

      .faq-question[aria-expanded="true"] .faq-chevron {
        transform: rotate(180deg);
        background: var(--accent-soft);
        color: var(--accent);
      }

      .faq-answer {
        display: none;
        padding: 0 0 20px;
        font-size: 14.5px;
        line-height: 1.8;
        color: var(--ink-light);
      }

      .faq-answer.open {
        display: block;
        animation: fadeSlide 0.2s ease;
      }

      .faq-answer a {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      .faq-answer strong {
        color: var(--ink);
      }

      @keyframes fadeSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
      }

      /* Affiliate badge */
      .affiliate-note {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff8e1;
        color: #f57f17;
        border: 1px solid #ffe082;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 500;
        margin-top: 8px;
      }

      /* Bottom CTA */
      .faq-cta {
        background: var(--ink);
        border-radius: 14px;
        padding: 36px 32px;
        text-align: center;
        margin-top: 16px;
        color: #fff;
      }

      .faq-cta h3 {
        font-family: var(--serif);
        font-size: 1.4rem;
        margin: 0 0 10px;
      }

      .faq-cta p {
        font-size: 14px;
        color: rgba(255,255,255,0.7);
        margin: 0 0 20px;
      }

      .faq-cta a {
        display: inline-block;
        background: #fff;
        color: var(--ink);
        font-weight: 700;
        font-size: 13px;
        padding: 10px 24px;
        border-radius: 8px;
        text-decoration: none;
        transition: opacity 0.15s;
      }

      .faq-cta a:hover { opacity: 0.85; }

      @media (max-width: 640px) {
        .faq-hero { margin-top: 32px; }
        .faq-cta { padding: 28px 20px; }
      }

/* ===== contact-us.html ===== */
body.contact-page {
            background: #f0f1f5;
            color: #222;
            font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        .contact-card .form-header h1,
        .contact-card h1 {
            font-family: system-ui, "Georgia", "Times New Roman", serif;
        }

        .contact-wrap {
            flex: 1;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 3rem 20px 4rem;
        }

        .contact-card {
            width: 100%;
            max-width: 800px;
            background: #fff;
            padding: 32px;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
            box-sizing: border-box;
        }

        .form-header {
            margin-bottom: 24px;
            text-align: center;
        }

        .form-header h1 {
            font-size: 2rem;
            font-weight: 700;
            color: #222;
            margin: 0 0 8px;
            line-height: 1.2;
        }

        .form-header .form-sub {
            color: #64748b;
            font-size: 1rem;
            margin: 0;
            line-height: 1.55;
            max-width: 28rem;
            margin-left: auto;
            margin-right: auto;
        }

        /* Editable intro — change text in HTML below */
        .contact-intro {
            margin-bottom: 32px;
            padding: 22px 24px 24px;
            text-align: left;
            background: linear-gradient(145deg, #f8faff 0%, #eef2ff 55%, #f5f3ff 100%);
            border: 1px solid #e0e7ff;
            border-left: 4px solid #6366f1;
            border-radius: 12px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        .contact-intro .contact-lead {
            font-size: 1.125rem;
            font-weight: 600;
            line-height: 1.55;
            color: #1e293b;
            margin: 0 0 14px;
            letter-spacing: -0.01em;
        }

        .contact-intro .contact-lead strong,
        .contact-intro .contact-brand {
            color: #4f46e5;
            font-weight: 700;
        }

        .contact-intro .contact-body {
            font-size: 0.9375rem;
            line-height: 1.8;
            color: #475569;
            margin: 0;
        }

        .contact-intro-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, #c7d2fe 20%, #c7d2fe 80%, transparent);
            margin: 0 0 28px;
            border: none;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #222;
            font-size: 1rem;
        }

        .form-group .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            font-size: 1rem;
            font-family: inherit;
            color: #222;
            background: #fff;
            box-sizing: border-box;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .form-group .form-control:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        .form-group textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        #errorMessage {
            color: #dc2626;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }

        #successMessage {
            color: #16a34a;
            margin-bottom: 12px;
            font-size: 0.9rem;
        }

        .captcha-container {
            display: flex;
            justify-content: center;
            margin-bottom: 8px;
        }

        .captcha-hint {
            font-size: 0.85rem;
            color: #64748b;
            text-align: center;
            margin-bottom: 16px;
        }

        .button-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .btn-submit {
            background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
            color: #fff;
            border: none;
            padding: 12px 32px;
            border-radius: 32px;
            font-weight: 600;
            font-size: 1rem;
            font-family: inherit;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
        }

        .btn-cancel,
        .btn-back {
            background: #f3f4f6;
            color: #4b5563;
            border: 1px solid #e5e7eb;
            padding: 12px 32px;
            border-radius: 32px;
            font-weight: 600;
            font-size: 1rem;
            font-family: inherit;
            cursor: pointer;
            transition: transform 0.2s, background 0.2s;
        }

        .btn-cancel:hover,
        .btn-back:hover {
            transform: translateY(-2px);
            background: #e5e7eb;
        }

        @media (max-width: 600px) {
            .contact-wrap {
                padding-top: 1.5rem;
                padding-bottom: 2rem;
                padding-left: max(20px, env(safe-area-inset-left, 0px));
                padding-right: max(20px, env(safe-area-inset-right, 0px));
            }

            .contact-card {
                padding: 20px 16px;
            }

            .form-header h1 {
                font-size: 1.5rem;
            }

            .contact-intro {
                padding: 18px 16px 20px;
            }

            .contact-intro .contact-lead {
                font-size: 1.05rem;
            }

            .button-group {
                flex-direction: column;
                align-items: stretch;
            }

            .btn-submit,
            .btn-cancel,
            .btn-back {
                width: 100%;
                text-align: center;
            }
        }

/* ===== terms-of-service.html ===== */
body.tos-page {
        --ink: #1a1a2e;
        --ink-light: #4a4a6a;
        --accent: #e63946;
        --accent-soft: #fff0f1;
        --rule: #e8e8f0;
        --bg: #f8f8fc;
        --card-bg: #ffffff;
        --section-num: #c5c5d8;
        --serif: system-ui, "Georgia", "Times New Roman", serif;
        --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      body.tos-page {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--sans);
      }

      .tos-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        width: 100%;
      }

      .tos-hero {
        max-width: 900px;
        margin: 56px auto 0;
        padding: 0 12px;
        display: flex;
        align-items: flex-end;
        gap: 24px;
        border-bottom: 2px solid var(--ink);
        padding-bottom: 20px;
      }

      .tos-hero-label {
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 4px 10px;
        border-radius: 4px;
        margin-bottom: 10px;
        display: inline-block;
      }

      .tos-hero h1 {
        font-family: var(--serif);
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin: 0 0 6px;
        color: var(--ink);
      }

      .tos-meta {
        margin-left: auto;
        text-align: right;
        font-size: 12px;
        color: var(--ink-light);
        line-height: 1.7;
        white-space: nowrap;
        padding-bottom: 4px;
        flex-shrink: 0;
      }

      .tos-meta strong {
        display: block;
        font-weight: 600;
        color: var(--ink);
        font-size: 13px;
      }

      .tos-intro-strip {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px 12px 0;
        font-size: 15px;
        color: var(--ink-light);
        line-height: 1.7;
        border-left: 3px solid var(--accent);
        margin-top: 28px;
        background: var(--accent-soft);
        padding: 16px 20px;
        border-radius: 0 8px 8px 0;
      }

      .tos-layout {
        max-width: 900px;
        margin: 40px auto 64px;
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 40px;
        align-items: start;
        padding: 0 12px;
      }

      /* TOC Sidebar */
      .tos-toc {
        position: sticky;
        top: 24px;
        background: var(--card-bg);
        border: 1px solid var(--rule);
        border-radius: 10px;
        padding: 20px;
        font-size: 12.5px;
      }

      .tos-toc-title {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--ink-light);
        margin-bottom: 14px;
      }

      .tos-toc a {
        display: block;
        padding: 5px 8px;
        border-radius: 5px;
        color: var(--ink-light);
        text-decoration: none;
        font-size: 12px;
        line-height: 1.4;
        transition: background 0.15s, color 0.15s;
      }

      .tos-toc a:hover {
        background: var(--accent-soft);
        color: var(--accent);
      }

      /* Main content */
      .tos-content section {
        margin-bottom: 40px;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--rule);
      }

      .tos-content section:last-child {
        border-bottom: none;
        margin-bottom: 0;
      }

      .tos-section-head {
        display: flex;
        align-items: baseline;
        gap: 14px;
        margin-bottom: 14px;
      }

      .tos-section-num {
        font-family: var(--serif);
        font-size: 13px;
        font-weight: 400;
        font-style: italic;
        color: var(--section-num);
        min-width: 28px;
      }

      .tos-content h2 {
        font-family: var(--serif);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--ink);
        margin: 0;
        letter-spacing: -0.01em;
      }

      .tos-content p {
        font-size: 14.5px;
        line-height: 1.8;
        color: var(--ink-light);
        margin: 0 0 12px;
      }

      .tos-content ul {
        margin: 8px 0 12px 0;
        padding: 0;
        list-style: none;
      }

      .tos-content ul li {
        font-size: 14px;
        line-height: 1.7;
        color: var(--ink-light);
        padding: 4px 0 4px 18px;
        position: relative;
      }

      .tos-content ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 12px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.5;
      }

      .contact-box {
        background: var(--ink);
        color: #fff;
        border-radius: 10px;
        padding: 24px 28px;
        margin-top: 8px;
      }

      .contact-box p {
        color: rgba(255,255,255,0.75);
        margin: 0 0 6px;
      }

      .contact-box a {
        color: #fff;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
      }

      @media (max-width: 768px) {
        .tos-hero {
          flex-direction: column;
          align-items: flex-start;
          margin-top: 32px;
          gap: 12px;
          padding-left: 0;
          padding-right: 0;
        }
        .tos-meta { text-align: left; margin-left: 0; }
        .tos-layout {
          grid-template-columns: 1fr;
          margin-top: 28px;
          padding-left: 0;
          padding-right: 0;
        }
        .tos-toc { position: static; }
      }

/* ===== privacy-policy.html ===== */
body.pp-page {
        --ink: #1a1a2e;
        --ink-light: #4a4a6a;
        --accent: #2196f3;
        --accent-soft: #f0f7ff;
        --rule: #e8e8f0;
        --bg: #f8f8fc;
        --card-bg: #ffffff;
        --section-num: #c5c5d8;
        --serif: system-ui, "Georgia", "Times New Roman", serif;
        --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      }

      body.pp-page {
        background: var(--bg);
        color: var(--ink);
        font-family: var(--sans);
      }

      .pp-wrap {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        box-sizing: border-box;
        width: 100%;
      }

      .pp-hero {
        max-width: 900px;
        margin: 56px auto 0;
        padding: 0 12px 20px;
        display: flex;
        align-items: flex-end;
        gap: 24px;
        border-bottom: 2px solid var(--ink);
      }

      .pp-hero-label {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 4px 10px;
        border-radius: 4px;
        margin-bottom: 10px;
        display: inline-block;
      }

      .pp-hero h1 {
        font-family: var(--serif);
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.1;
        margin: 0 0 6px;
        color: var(--ink);
      }

      .pp-meta {
        margin-left: auto;
        text-align: right;
        font-size: 12px;
        color: var(--ink-light);
        line-height: 1.7;
        white-space: nowrap;
        padding-bottom: 4px;
        flex-shrink: 0;
      }

      .pp-meta strong {
        display: block;
        font-weight: 600;
        color: var(--ink);
        font-size: 13px;
      }

      .pp-intro-strip {
        max-width: 900px;
        margin: 28px auto 0;
        padding: 16px 20px;
        font-size: 15px;
        color: var(--ink-light);
        line-height: 1.7;
        border-left: 3px solid var(--accent);
        background: var(--accent-soft);
        border-radius: 0 8px 8px 0;
      }

      .pp-layout {
        max-width: 900px;
        margin: 40px auto 64px;
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 40px;
        align-items: start;
        padding: 0 12px;
      }

      .pp-toc {
        position: sticky;
        top: 24px;
        background: var(--card-bg);
        border: 1px solid var(--rule);
        border-radius: 10px;
        padding: 20px;
      }

      .pp-toc-title {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--ink-light);
        margin-bottom: 14px;
      }

      .pp-toc a {
        display: block;
        padding: 5px 8px;
        border-radius: 5px;
        color: var(--ink-light);
        text-decoration: none;
        font-size: 12px;
        line-height: 1.4;
        transition: background 0.15s, color 0.15s;
      }

      .pp-toc a:hover {
        background: var(--accent-soft);
        color: var(--accent);
      }

      .pp-content section {
        margin-bottom: 40px;
        padding-bottom: 40px;
        border-bottom: 1px solid var(--rule);
      }

      .pp-content section:last-child {
        border-bottom: none;
        margin-bottom: 0;
      }

      .pp-section-head {
        display: flex;
        align-items: baseline;
        gap: 14px;
        margin-bottom: 14px;
      }

      .pp-section-num {
        font-family: var(--serif);
        font-size: 13px;
        font-weight: 400;
        font-style: italic;
        color: var(--section-num);
        min-width: 28px;
      }

      .pp-content h2 {
        font-family: var(--serif);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--ink);
        margin: 0;
        letter-spacing: -0.01em;
      }

      .pp-content h3 {
        font-family: var(--sans);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ink);
        margin: 16px 0 8px;
      }

      .pp-content p {
        font-size: 14.5px;
        line-height: 1.8;
        color: var(--ink-light);
        margin: 0 0 12px;
      }

      .pp-content ul {
        margin: 8px 0 12px 0;
        padding: 0;
        list-style: none;
      }

      .pp-content ul li {
        font-size: 14px;
        line-height: 1.7;
        color: var(--ink-light);
        padding: 4px 0 4px 18px;
        position: relative;
      }

      .pp-content ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 12px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        opacity: 0.5;
      }

      .no-sell-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #e8f5e9;
        color: #2e7d32;
        border: 1px solid #a5d6a7;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
      }

      .no-sell-badge::before {
        content: '✓';
        font-size: 16px;
      }

      .contact-box {
        background: var(--ink);
        color: #fff;
        border-radius: 10px;
        padding: 24px 28px;
        margin-top: 8px;
      }

      .contact-box p {
        color: rgba(255,255,255,0.75);
        margin: 0 0 6px;
      }

      .contact-box a {
        color: #fff;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
      }

      @media (max-width: 768px) {
        .pp-hero {
          flex-direction: column;
          align-items: flex-start;
          margin-top: 32px;
          gap: 12px;
          padding-left: 0;
          padding-right: 0;
        }
        .pp-meta { text-align: left; margin-left: 0; }
        .pp-layout {
          grid-template-columns: 1fr;
          margin-top: 28px;
          padding-left: 0;
          padding-right: 0;
        }
        .pp-toc { position: static; }
      }

/* ===== error404.html ===== */

        body.page-404 {
            --purple-deep: #4c1d95;
            --purple: #6d28d9;
            --purple-soft: #a78bfa;
            --blue: #2563eb;
            --blue-soft: #93c5fd;
            --ink: #0f172a;
            --ink-mid: #334155;
            --ink-muted: #64748b;
            --surface: rgba(255, 255, 255, 0.72);
            --surface-solid: #ffffff;
            --stroke: rgba(148, 163, 184, 0.35);
            --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
            --radius: 24px;
        }

        html { scroll-behavior: smooth; }

        body.page-404 {
            min-height: 100vh;
            font-family: 'DM Sans', system-ui, sans-serif;
            color: var(--ink);
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            padding: 0;
            position: relative;
            isolation: isolate;
        }

        /* Minimal logo-only header — white bar (matches site nav chrome) */
        .err-site-header {
            width: 100%;
            flex-shrink: 0;
            background: #ffffff;
            border-bottom: 1px solid rgba(223, 228, 236, 0.88);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
            padding: 12px 16px;
            position: relative;
            z-index: 20;
        }
        .err-site-header-inner {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 0 15px;
        }
        .err-site-brand {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .err-site-brand:hover {
            opacity: 0.92;
        }
        .err-site-brand img {
            height: 30px;
            width: auto;
            max-width: 120px;
            display: block;
        }

        .err-page-wrap {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            /* justify-content: center; */
            padding: 28px 16px 40px;
            width: 100%;
            position: relative;
            min-height: 0;
        }

        /* Ambient background */
        body.page-404::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -2;
            background:
                radial-gradient(ellipse 100% 80% at 10% 0%, rgba(167, 139, 250, 0.35), transparent 50%),
                radial-gradient(ellipse 80% 60% at 90% 20%, rgba(147, 197, 253, 0.45), transparent 45%),
                radial-gradient(ellipse 60% 50% at 50% 100%, rgba(109, 40, 217, 0.12), transparent 55%),
                linear-gradient(165deg, #eef2ff 0%, #f8fafc 38%, #faf5ff 72%, #f1f5f9 100%);
        }

        body.page-404::after {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            opacity: 0.4;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
            pointer-events: none;
        }

        /* Giant watermark 404 */
        .err-watermark {
            position: fixed;
            left: 50%;
            top: 42%;
            transform: translate(-50%, -50%);
            font-family: 'Outfit', sans-serif;
            font-size: clamp(10rem, 38vw, 22rem);
            font-weight: 800;
            letter-spacing: -0.06em;
            line-height: 1;
            color: rgba(148, 163, 184, 0.14);
            user-select: none;
            pointer-events: none;
            z-index: 0;
        }

        .err-shell {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 720px;
        }

        /* Main glass card */
        .err-card {
           /* background: var(--surface); */
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            /*border: 1px solid rgba(255, 255, 255, 0.8);
            border-radius: var(--radius);
            box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);*/
            padding: clamp(28px, 5vw, 44px) clamp(22px, 4vw, 40px) 36px;
            animation: errFade 0.75s ease 0.08s both;
        }

        .err-hero {
            display: flex;
            align-items: center;
            gap: clamp(24px, 4vw, 40px);
            margin-bottom: 32px;
        }

        .err-illo-wrap {
            flex-shrink: 0;
            position: relative;
        }
        .err-illo-glow {
            position: absolute;
            inset: -20%;
            background: radial-gradient(circle, rgba(109, 40, 217, 0.25) 0%, transparent 70%);
            filter: blur(12px);
            z-index: 0;
        }
        .err-illo {
            position: relative;
            z-index: 1;
            width: clamp(140px, 32vw, 188px);
            height: clamp(140px, 32vw, 188px);
            border-radius: 22px;
            background: linear-gradient(145deg, #faf5ff 0%, #eef2ff 50%, #e0e7ff 100%);
            border: 1px solid rgba(99, 102, 241, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow:
                0 20px 40px -15px rgba(76, 29, 149, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }
        .err-illo svg {
            width: clamp(88px, 22vw, 112px);
            height: clamp(88px, 22vw, 112px);
            animation: errFloat 5s ease-in-out infinite;
        }
        .err-code-tag {
            position: absolute;
            top: -6px;
            right: -6px;
            z-index: 2;
            background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
            color: #fff;
            font-family: 'Outfit', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            padding: 6px 11px;
            border-radius: 999px;
            box-shadow: 0 6px 16px rgba(109, 40, 217, 0.45);
        }

        .err-copy { flex: 1; min-width: 0; }
        .err-copy .err-kicker {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--purple);
            background: rgba(109, 40, 217, 0.08);
            padding: 5px 10px;
            border-radius: 6px;
            margin-bottom: 10px;
        }
        .err-copy h1 {
            font-family: 'Outfit', sans-serif;
            font-size: clamp(1.65rem, 4.5vw, 2.1rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.15;
            color: var(--ink);
            margin-bottom: 12px;
        }
        .err-path {
            display: inline-block;
            font-size: 12px;
            font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
            color: var(--ink-mid);
            background: rgba(241, 245, 249, 0.95);
            border: 1px solid var(--stroke);
            padding: 6px 12px;
            border-radius: 10px;
            margin-bottom: 14px;
            word-break: break-all;
            max-width: 100%;
        }
        .err-copy p {
            font-size: 15px;
            line-height: 1.65;
            color: var(--ink-muted);
            max-width: 26rem;
        }

        .err-search-wrap { margin-bottom: 8px; }
        .err-search-label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            color: var(--ink-muted);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-bottom: 10px;
        }
        .err-search-row {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--surface-solid);
            border: 1.5px solid var(--stroke);
            border-radius: 14px;
            padding: 6px 8px 6px 14px;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .err-search-row:focus-within {
            border-color: rgba(109, 40, 217, 0.45);
            box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
        }
        .err-search-row svg {
            width: 18px; height: 18px;
            stroke: var(--ink-muted);
            flex-shrink: 0;
        }
        .err-search-row input {
            flex: 1;
            min-width: 0;
            border: none;
            outline: none;
            font-family: inherit;
            font-size: 15px;
            background: transparent;
            color: var(--ink);
        }
        .err-search-row input::placeholder { color: #94a3b8; }
        .err-search-btn {
            flex-shrink: 0;
            border: none;
            border-radius: 10px;
            padding: 11px 22px;
            font-family: 'Outfit', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            cursor: pointer;
            background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
            box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
            transition: transform 0.15s, filter 0.2s;
        }
        .err-search-btn:hover { filter: brightness(1.06); transform: scale(0.98); }

        .err-divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 26px 0 18px;
        }
        .err-divider::before, .err-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--stroke), transparent);
        }
        .err-divider span {
            font-size: 10px;
            font-weight: 700;
            color: var(--ink-muted);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            white-space: nowrap;
        }

        .err-cats {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 28px;
        }
        .err-cat {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 16px;
            font-size: 13px;
            font-weight: 600;
            color: var(--ink-mid);
            text-decoration: none;
            background: rgba(255, 255, 255, 0.65);
            border: 1px solid var(--stroke);
            border-radius: 999px;
            transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
        }
        .err-cat:hover {
            background: #fff;
            border-color: rgba(109, 40, 217, 0.35);
            color: var(--purple);
            transform: translateY(-2px);
        }
        .err-cat span { font-size: 15px; line-height: 1; }

        .err-cta { text-align: center; }
        .err-home-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 32px;
            border-radius: 999px;
            font-family: 'Outfit', sans-serif;
            font-size: 15px;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 45%, var(--blue) 100%);
            box-shadow: 0 10px 30px -8px rgba(76, 29, 149, 0.55);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .err-home-btn:hover {
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 16px 40px -10px rgba(76, 29, 149, 0.5);
        }
        .err-home-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

        .err-foot {
            margin-top: 26px;
            text-align: center;
            font-size: 13px;
            color: var(--ink-muted);
        }
        .err-foot a {
            color: var(--ink-mid);
            font-weight: 600;
            text-decoration: none;
            margin: 0 8px;
        }
        .err-foot a:hover { color: var(--purple); }

        @keyframes errFade {
            from { opacity: 0; transform: translateY(18px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes errFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        @media (max-width: 640px) {
            .err-page-wrap {
                padding-left: max(20px, env(safe-area-inset-left, 0px));
                padding-right: max(20px, env(safe-area-inset-right, 0px));
            }
            .err-watermark { top: 36%; opacity: 0.85; }
            .err-hero { flex-direction: column; text-align: center; }
            .err-copy p { margin-left: auto; margin-right: auto; }
            .err-path { text-align: left; }
            .err-search-row { flex-wrap: wrap; }
            .err-search-btn { width: 100%; }
        }

/* ===== index.html ===== */
body.index-page {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

    body.index-page .container-center {
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;

    }

    .dashboard-box {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 20px;
      padding: 40px;
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      text-align: center;
      max-width: 600px;
      width: 90%;
      max-height: 400px;
    }

    .dashboard-title {
      font-size: 2.2rem;
      font-weight: 600;
      color: #000;
      margin-bottom: 30px;
    }

    .tool-button {
      display: block;
      width: 100%;
      margin: 15px 0;
      font-size: 1.1rem;
      padding: 14px 0;
      border-radius: 12px;
      background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
      color: white;
      border: none;
      transition: all 0.3s ease;
      text-decoration: none;
    }

    .tool-button:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 650px) {
      .dashboard-title {
        font-size: 1.4rem;
      }

      .dashboard-box {
        padding: 30px 20px;
      }
    }
