/* ================================================================
   Sub-pages — Support, Privacy, Terms, Delete Account
   ================================================================ */

/* ---------- Page header ---------- */
.page-header {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-12);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-size: var(--fs-display-large);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-display-large);
  color: var(--fg-primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.page-header p {
  font-size: var(--fs-body-large);
  line-height: var(--lh-body-large);
  color: var(--fg-body);
  max-width: 600px;
}

/* ---------- Page content ---------- */
.page-content {
  padding-block: var(--space-16);
}

.page-content .container {
  max-width: 720px;
}

/* ---------- Article / Legal text ---------- */
.legal-article {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--fg-body);
}

.legal-article h2 {
  font-size: var(--fs-heading);
  font-weight: var(--fw-bold);
  color: var(--fg-primary);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.legal-article h3 {
  font-size: var(--fs-body-large);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-article p {
  margin-bottom: var(--space-4);
}

.legal-article ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-article li {
  margin-bottom: var(--space-2);
}

.legal-article a {
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--neon);
}

.legal-article .last-updated {
  display: block;
  font-size: var(--fs-body-small);
  color: var(--fg-caption);
  margin-bottom: var(--space-8);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.is-open {
  border-color: rgba(204, 255, 0, 0.3);
  box-shadow: 0 0 20px var(--neon-glow-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--fg-caption);
  transition: transform 300ms var(--ease-decel);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
  color: var(--neon);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-decel), padding 400ms var(--ease-decel);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--fg-body);
}

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.contact-card {
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.contact-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow-soft);
}

.contact-card h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  margin-bottom: var(--space-2);
}

.contact-card p {
  font-size: var(--fs-body-small);
  color: var(--fg-body);
  line-height: 1.6;
}

.contact-card a {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--fs-body-small);
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

.contact-card a:hover {
  color: var(--neon);
}

/* ---------- Delete account ---------- */
.delete-warning {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--error-soft, #FEF2F2);
  border: 1px solid var(--error-border, #FECACA);
  margin-bottom: var(--space-8);
}

.delete-warning h2 {
  font-size: var(--fs-heading);
  font-weight: var(--fw-bold);
  color: var(--error, #DC2626);
  margin-bottom: var(--space-3);
}

.delete-warning p {
  font-size: var(--fs-body);
  color: var(--error-text, #991B1B);
  line-height: 1.7;
}

.delete-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.delete-steps li {
  position: relative;
  padding-left: var(--space-12);
  padding-bottom: var(--space-6);
  border-left: 2px solid var(--border-subtle);
  margin-left: var(--space-3);
}

.delete-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -14px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: var(--neon);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  display: grid;
  place-items: center;
}

.delete-steps li:last-child {
  border-left: 2px solid transparent;
}

.delete-steps h3 {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
  margin-bottom: var(--space-1);
}

.delete-steps p {
  font-size: var(--fs-body-small);
  color: var(--fg-body);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
