/* Styles for the legal / support pages (privacy, terms, support, delete-account).
   Loaded AFTER style.css, which stays untouched: its `body` rule is
   `height:100vh; display:flex; justify-content:center` — right for a
   one-screen landing, but it collapses any page with real text. Everything
   here is scoped to `body.legal` so the landing can never be affected, and
   the :root tokens from style.css are inherited for free. */

body.legal {
  height: auto;
  min-height: 100vh;
  display: block;
  line-height: 1.7;
  font-weight: 300;
}

/* 0.7 is fine behind a headline, not behind paragraphs. Darker background
   plus a scrim so body text keeps a readable contrast ratio. */
body.legal .background-container {
  filter: brightness(0.3);
}

body.legal::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  transition: color 0.3s ease;
}

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

/* h1 inherits the white→grey gradient from style.css; only the size differs. */
.legal-wrap h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--primary-orange);
  margin: 2.75rem 0 0.85rem;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.legal-content p,
.legal-content li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }

.legal-content strong { color: #fff; font-weight: 700; }

.legal-content a {
  color: var(--primary-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Same glass treatment as the download buttons — used for callouts and the
   contact block. */
.legal-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.legal-card p:last-child,
.legal-content li:last-child { margin-bottom: 0; }

/* For the "this does not cancel your subscription" warning, which people
   genuinely miss. */
.legal-card.warn { border-color: rgba(255, 140, 0, 0.45); }

.legal-card .card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
}

.legal-mail {
  font-size: 1.05rem;
  font-weight: 400;
  word-break: break-all;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.8);
}

.legal-table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.legal-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.legal-footer a:hover { color: var(--primary-orange); }

/* Footer for the landing page (index.html). Deliberately NOT margin-top:auto:
   auto margins beat justify-content in flex, which would absorb the free space
   and shove the hero to the top of the screen. */
.site-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover { color: var(--primary-orange); }

@media (max-width: 480px) {
  .legal-wrap { padding: 2.5rem 1.15rem 3.5rem; }
  .legal-wrap h1 { font-size: 1.6rem; }
  .legal-content h2 { font-size: 0.95rem; }
  .legal-table { font-size: 0.85rem; }
  .legal-table th, .legal-table td { padding: 0.6rem 0.4rem; }
}
