/* ============================================================
   Funnyeye — Legal subpage styles (/terms/, /privacy/)
   ============================================================
   Page-specific styles for the two static legal pages.  Loaded
   AFTER chrome.css.

   Design notes:
     - CARD LAYOUT: the legal page sits inside a navy-700 document
       card that "lifts off" the navy-900 site body chrome.css
       provides.  4px radius + soft elevation shadow + 1px gold
       border (3px top accent) give it the feel of a printed page
       on a darker surface.
     - DARK NAVY THEME matching the rest of the site (chrome,
       about, gallery, contact all use navy + gold).
     - Reading width capped at 760px so the inner content (after
       the card's 56px L/R padding) lands at the same ~648px as a
       well-set legal document.
     - Headings pick up the gold accent; body text is white with
       mild opacity for comfortable long-form reading.
     - Bilingual toggle uses the chrome.css rule that hides the
       inactive <span lang="zh|en>.
     - Lists use a thin gold rule as the bullet, instead of the
       default disc — feels legal/typographic, less noisy.
     - Mobile (≤480px): card goes edge-to-edge (no L/R borders,
       no radius) so text width is maximised on small screens.
     - Includes @media print rules so the page prints clean
       (no card chrome — just black ink on white paper).
   ============================================================ */

/* ---- Card container ---- */

.fe-legal {
  /* Sized slightly wider than the prior flat layout so the inner
     content (post-56px L/R padding) sits at ~648px, the standard
     legal-document reading width. */
  max-width: 760px;
  margin: 96px auto 128px;
  padding: 56px 56px 72px;

  /* Card visual: sits on top of the chrome.css body bg (#0a0a0a),
     with a navy-700 fill + a 1px gold frame + a thicker gold rule
     along the top edge as a decorative accent. */
  background: var(--colors--brand-navy-700);
  border: 1px solid rgba(204, 156, 48, 0.42);
  border-top: 3px solid var(--colors--brand-gold-500);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,  /* subtle inner top highlight */
    0 16px 48px rgba(0, 0, 0, 0.45);          /* elevation off the page */

  color: var(--colors--white);
}

/* Mobile: drop the radius + horizontal borders so the card fills
   the screen edge to edge — text width is too precious to waste
   on chrome when the viewport is narrow. */
@media (max-width: 480px) {
  .fe-legal {
    margin: 0;
    padding: 48px 20px 64px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    border-top-width: 3px; /* keep the decorative top rule */
    box-shadow: none;
  }
}

/* ---- Hero (sits inside the card's top padding) ---- */

.fe-legal-hero {
  position: relative;
  margin: 0 0 56px;
  padding: 0 0 28px 20px;
  border-left: 3px solid var(--colors--brand-gold-500);
}

.fe-legal-eyebrow {
  font-family: var(--font-display);
  color: var(--colors--brand-gold-500);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

:lang(zh) .fe-legal-eyebrow {
  font-family: var(--font-zh);
  letter-spacing: 0.1em;
  text-transform: none;
}

.fe-legal-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--colors--white);
  max-width: 14ch;
}

:lang(en) .fe-legal-title { font-family: var(--font-display); }
:lang(zh) .fe-legal-title { font-family: var(--font-zh); }

.fe-legal-meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--colors--brand-blue-gray-500);
  text-transform: uppercase;
  margin: 0;
}

:lang(zh) .fe-legal-meta {
  font-family: var(--font-zh);
  letter-spacing: 0.08em;
  text-transform: none;
}

/* ---- Body content (rendered by subpage/_chrome/legal.js) ---- */

/* Future-proofing note appended BEFORE chunks when a language is
   missing its own body and is falling back to zh. */
.fe-legal-note {
  margin: 0 0 40px;
  padding: 14px 18px;
  border: 1px dashed rgba(204, 156, 48, 0.4);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--colors--brand-gold-400);
  letter-spacing: 0.06em;
}

/* Each chunk is a <section class="fe-legal-section">.  Sibling
   sections are separated by a thin gold-tinted divider + 44px of
   breathing room — tighter than the previous 56+56 so the content
   reads as a connected document instead of isolated blocks. */
.fe-legal-content > .fe-legal-section + .fe-legal-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid rgba(204, 156, 48, 0.18);
}

/* First section sits flush against the note / hero — no extra
   separator at the top. */

.fe-legal-section h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  color: var(--colors--brand-gold-500);
  line-height: 1.4;
}

:lang(en) .fe-legal-section h3 { font-family: var(--font-display); }
:lang(zh) .fe-legal-section h3 {
  font-family: var(--font-zh);
  letter-spacing: 0.06em;
}

.fe-legal-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--colors--brand-blue-gray-500);
  letter-spacing: 0.04em;
}

:lang(en) .fe-legal-section h4 { font-family: var(--font-display); }
:lang(zh) .fe-legal-section h4 { font-family: var(--font-zh); }

.fe-legal-section p {
  margin: 0 0 14px;
  font-family: var(--font-body-en);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.015em;
  color: var(--colors--white);
  opacity: 0.88;
}

:lang(zh) .fe-legal-section p {
  font-family: var(--font-zh);
  font-size: 15.5px;
  letter-spacing: 0.04em;
}

.fe-legal-section ul {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.fe-legal-section li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 1.5rem;
  font-family: var(--font-body-en);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  color: var(--colors--white);
  opacity: 0.88;
}

:lang(zh) .fe-legal-section li {
  font-family: var(--font-zh);
  font-size: 15.5px;
  letter-spacing: 0.04em;
}

/* Custom bullet: a short gold horizontal rule instead of a disc.
   Reads as a legal clause marker rather than a generic dot. */
.fe-legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.7rem;
  height: 1px;
  background: var(--colors--brand-gold-500);
  opacity: 0.65;
}

/* ---- Print ---- */

@media print {
  /* Drop the card chrome — print as a flat document on white. */
  .fe-legal {
    color: #000;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
  }
  :lang(en) .fe-legal-title,
  :lang(en) .fe-legal-section h3,
  :lang(en) .fe-legal-section h4 {
    font-family: "Times New Roman", Times, serif;
    color: #000;
  }
  :lang(zh) .fe-legal-title,
  :lang(zh) .fe-legal-section h3,
  :lang(zh) .fe-legal-section h4 {
    font-family: serif;
    color: #000;
  }
  /* Drop the gold accents that read poorly in grayscale print. */
  .fe-legal-hero { border-left: 0; padding-left: 0; }
  .fe-legal-content > .fe-legal-section + .fe-legal-section {
    border-top-color: #999;
  }
  .fe-legal-section li::before {
    background: #000;
  }
  .fe-legal-section { page-break-inside: avoid; }
  .fe-legal-title  { page-break-after: avoid; }
  [data-fe-nav-slot],
  [data-footer-slot],
  [data-fe-footer-slot] {
    display: none !important;
  }
}
