/* HYPER RED — legal / static info pages
   Shared layout for privacy.html, terms.html, faq.html, 404.html.
   Reuses tokens.css / base.css / fonts.css rather than redefining color
   or type — this file is layout-only. */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5) var(--sp-10);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--sp-6);
}

.legal-back:hover {
  color: var(--text-primary);
}

/* ---- Shared chrome for privacy/terms/faq/404 ----
   These are plain static pages (no main.js, no SPA nav) so they get a
   simplified header — brand mark + a single link home — rather than the
   full tab bar, which has nothing to point at here. .hr-header/.hr-atmosphere/
   .hr-footer classes are the same ones index.html uses (from layout.css),
   kept visually consistent; is-scrolled is applied statically in the
   markup since there's no scroll-linked header transition to run without
   main.js — a permanently solid bar suits a reading page better anyway. */
.legal-header-link {
  display: inline-flex;
  align-items: center;
  height: var(--touch-target);
  color: var(--text-faint);
  font-family: var(--font-display);
  font-size: var(--font-size-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.legal-header-link:hover {
  color: var(--text-secondary);
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: var(--sp-2);
}

.legal-updated {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: var(--sp-8);
}

.legal-page h2 {
  font-size: 18px;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--text-primary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.legal-page ul {
  margin: 0 0 var(--sp-4);
  padding-left: 1.2em;
}

.legal-page li {
  margin-bottom: var(--sp-2);
}

.legal-page a {
  color: var(--hr-red-bright);
}

.legal-contact {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- 404 ---- */
.not-found-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
}

.not-found-page .hr-code {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--hr-red);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.not-found-page h1 {
  font-size: 22px;
  margin-bottom: var(--sp-3);
}

.not-found-page p {
  max-width: 420px;
  margin-bottom: var(--sp-6);
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--sp-4) 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--hr-red-bright);
}

.faq-chevron {
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: var(--sp-3);
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 var(--sp-4);
}

.faq-item[data-open="true"] .faq-answer {
  display: block;
}

/* ---- Footer legal links (index.html) ---- */
.hr-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin: var(--sp-3) 0;
  font-size: 12px;
}

.hr-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.hr-footer-links a:hover {
  color: var(--text-primary);
}

/* ---- Cookie consent banner ---- */
.hr-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--bg-2);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.hr-cookie-banner[hidden] {
  display: none;
}

.hr-cookie-text {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0;
}

.hr-cookie-text a {
  color: var(--hr-red-bright);
}

.hr-cookie-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .hr-cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .not-found-page .hr-code {
    font-size: 64px;
  }
}
