/* ============================================
   Pages.css -- Page-Specific Styles
   ============================================ */

/* ============================================
   Landing Page -- Hero
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 60px;
  background: var(--app-bg);
}

.hero-bg-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.hero-content .hero-wordmark img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(30%) saturate(600%) hue-rotate(340deg) brightness(95%);
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 40px;
  margin: 0 auto 36px;
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Copper glow behind the icon -- blurred solid for smooth rendering */
.hero-icon::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: rgba(196, 144, 106, 0.22);
  filter: blur(40px);
  -webkit-filter: blur(40px);
  z-index: -1;
  animation: iconGlow 4s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-icon img {
  width: 100%;
  height: 100%;
  border-radius: 40px;
}

.hero-wordmark {
  max-width: 400px;
  margin: 0 auto 24px;
}

.hero-wordmark img {
  width: 100%;
  filter: brightness(0) saturate(100%) invert(65%) sepia(30%) saturate(600%) hue-rotate(340deg) brightness(95%);
}

.hero-tagline {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0.4rem;
}

/* Hero CTA */
.hero-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}


.hero-price {
  color: var(--text-mid);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.hero-price-amount {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.8rem;
}

.hero-price-after {
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

.hero-price-fine {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.4rem;
}

.blinking-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   Landing Page -- Screenplay Scroll
   ============================================ */

.screenplay-scroll {
  background: var(--page-bg);
}

.screenplay-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

/* Gutters */
.gutter {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 48px;
  width: 56px;
  flex-shrink: 0;
}

.gutter-left {
  align-items: flex-end;
  padding-right: 12px;
}

.gutter-right {
  align-items: flex-start;
  padding-left: 12px;
}

.gutter-icon {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
}

.gutter-icon.visible {
  opacity: 1;
}

.gutter-left .gutter-icon {
  transform: translateX(-6px);
}

.gutter-left .gutter-icon.visible {
  transform: translateX(0);
}

.gutter-right .gutter-icon {
  transform: translateX(6px);
}

.gutter-right .gutter-icon.visible {
  transform: translateX(0);
}

/* Scene number -- Courier, half opacity, matches app */
.gutter-scene-num {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0;
}

.gutter-scene-num.visible {
  opacity: 0.5;
}

/* Note icon -- speech bubble, accent color at 70% */
.gutter-note {
  color: var(--accent);
  opacity: 0;
}

.gutter-note.visible {
  opacity: 0.7;
}

/* Act pill -- border-only capsule, accent stroke, no fill */
.gutter-act {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
}

@media (max-width: 640px) {
  .gutter {
    display: none;
  }
}

.screenplay-page {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(20, 22, 28, 0.90);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  padding: 48px 64px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
  min-height: 320px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40), 0 1px 4px rgba(0, 0, 0, 0.20);
}

.screenplay-page .scene-heading {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.screenplay-page .action {
  margin-bottom: 16px;
  color: var(--text-mid);
}

.screenplay-page .character {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
  margin-top: 16px;
  color: var(--text-primary);
}

.screenplay-page .dialogue {
  text-align: left;
  margin: 0 auto 16px;
  padding-left: 17%;
  padding-right: 17%;
  color: var(--text-mid);
}

.screenplay-page .transition-line {
  text-align: right;
  text-transform: uppercase;
  margin-top: 20px;
  color: var(--text-mid);
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  animation: blink 0.6s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

/* ============================================
   Landing Page -- Feature Cards
   ============================================ */

.feature-tease-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-tease-card {
  text-decoration: none;
  text-align: center;
  padding: 32px 20px;
}

.feature-tease-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-tease-card h4 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-tease-card p {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .feature-tease-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-tease-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 90vh;
    padding: 60px 16px 40px;
  }

  .hero-bg-glow {
    width: 400px;
    height: 400px;
  }

  .hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 28px;
  }

  .hero-icon img {
    border-radius: 28px;
  }

  .hero-wordmark {
    max-width: 280px;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .screenplay-page {
    padding: 28px 24px;
  }
}

/* ============================================
   Landing Page -- Editor Screenshot
   ============================================ */

.editor-screenshot {
  max-width: 1400px;
  margin: 0 auto;
}

.editor-screenshot img {
  width: 100%;
  border-radius: 10px;
}

.feature-screenshot {
  max-width: 1100px;
  margin: 0 auto;
}

.feature-screenshot img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Landing Page -- Features Row
   ============================================ */

.features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 64px;
}

.features-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.features-description h2 {
  margin-bottom: 16px;
}

.features-description p {
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .features-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
}

/* ============================================
   Landing Page -- Editor Showcase (legacy)
   ============================================ */

.editor-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.editor-feature-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-point-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.feature-point h4 {
  margin-bottom: 4px;
}

.feature-point p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .editor-showcase {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Landing Page -- Privacy Promise
   ============================================ */

.privacy-promise {
  text-align: center;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.privacy-card {
  text-align: center;
  padding: 32px 24px;
}

.privacy-card .card-icon {
  margin: 0 auto 16px;
}

@media (max-width: 640px) {
  .privacy-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Features Page
   ============================================ */

.features-hero {
  text-align: center;
  padding: 80px 0 48px;
}

.feature-section {
  padding: 64px 0;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-layout.text-only {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
}

.feature-layout.reverse {
  direction: rtl;
}

.feature-layout.reverse > * {
  direction: ltr;
}

.feature-text h3 {
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 0.95rem;
}

.feature-text ul {
  margin-top: 16px;
}

.feature-text li {
  padding: 6px 0;
  color: var(--text-mid);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-text li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .feature-layout,
  .feature-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ============================================
   Features -- Themes Section
   ============================================ */

.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Features -- Shortcuts Table
   ============================================ */

.shortcuts-section {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Features -- Revision Colors
   ============================================ */

.revision-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.revision-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-mid);
}

.revision-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Writers Room Page
   ============================================ */

.wr-hero {
  text-align: center;
  padding: 80px 0 48px;
}

.wr-hero h1 {
  margin-bottom: 16px;
}

.wr-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Peer Diagram */
.peer-diagram {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.peer-layout {
  position: relative;
  width: 680px;
  height: 480px;
  margin: 0 auto;
}

/* Dashed connection lines - behind everything */
.peer-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.peer-lines line {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  opacity: 0.3;
}

/* Cards sit on top with solid background */
.peer-card {
  position: absolute;
  width: 120px;
  padding: 16px 12px;
  text-align: center;
  border-radius: 10px;
  z-index: 2;
  background: var(--app-bg);
}

.peer-host {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  border-color: var(--accent);
  background: var(--app-bg);
}

.peer-icon {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

/* Row 2 - 4 guests, evenly spaced */
.peer-r2-1 { top: 200px; left: 20px; }
.peer-r2-2 { top: 200px; left: 185px; }
.peer-r2-3 { top: 200px; right: 185px; }
.peer-r2-4 { top: 200px; right: 20px; }

/* Row 3 - 3 guests, centered */
.peer-r3-1 { top: 370px; left: 80px; }
.peer-r3-2 { top: 370px; left: 50%; transform: translateX(-50%); }
.peer-r3-3 { top: 370px; right: 80px; }

.peer-name {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.peer-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.token-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(196, 144, 106, 0.10);
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Writer Room Diagram */
.wr-diagram-section {
  padding: 64px 0;
  display: none;
}

.container-full {
  width: 100%;
  padding: 0 24px;
}

.container-full .section-heading {
  text-align: center;
}

/* Writer Row */
.writer-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  position: relative;
}

.writer-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.writer-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  width: 100%;
  min-height: 180px;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 1.2s ease;
  box-shadow: 0 0 0 rgba(196, 144, 106, 0);
}

.writer-chip.active {
  box-shadow: 0 0 20px rgba(196, 144, 106, 0.15), 0 0 40px rgba(196, 144, 106, 0.08);
}

.writer-chip.has-arc-active {
  box-shadow: 0 0 12px rgba(196, 144, 106, 0.10);
}

.writer-icon {
  flex-shrink: 0;
  opacity: 0.4;
}

.writer-chip .writer-icon {
  width: 28px;
  height: 28px;
}


/* Floating pen icon (JS-driven) */
.flying-pen {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.83 2.83 0 114 4L7.5 20.5 3 22l1.5-4.5z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.83 2.83 0 114 4L7.5 20.5 3 22l1.5-4.5z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: none;
}

/* Activity line under each card */
.writer-activity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.writer-activity.activity-accent {
  color: var(--accent);
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .wr-diagram-section {
    display: none;
  }
}

.writer-icon {
  flex-shrink: 0;
  opacity: 0.4;
}

.writer-chip.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(196, 144, 106, 0.06);
}

.writer-chip.active .writer-icon {
  opacity: 1;
}

.pen-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(196, 144, 106, 0.12);
  color: var(--accent);
  white-space: nowrap;
}

/* Token Steps */
.token-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.token-step {
  text-align: center;
  padding: 24px 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196, 144, 106, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
  color: var(--accent);
}

.token-step h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.token-step p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .token-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .peer-layout {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: static;
  }

  .peer-lines { display: none; }

  .peer-card {
    position: static;
    width: auto;
    transform: none;
  }

  .peer-host {
    grid-column: 1 / -1;
    width: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .token-steps {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 32px auto 0;
  }

  .peer-layout {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: static;
  }

  .peer-lines { display: none; }

  .peer-card {
    position: static;
    width: auto;
    transform: none;
  }

  .peer-host {
    grid-column: 1 / -1;
    width: auto;
    transform: none;
  }

  .guest-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Writers Room -- Guest Features */
.guest-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.guest-feature-card {
  text-align: center;
  padding: 24px 16px;
}

.guest-feature-card .card-icon {
  margin: 0 auto 8px;
}

.guest-feature-card h4 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.guest-feature-card p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .guest-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   User Guide Page
   ============================================ */

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

.guide-sidebar {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 8px;
}

.guide-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-sidebar a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--text-mid);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.guide-sidebar a:hover {
  color: var(--text-primary);
  background: var(--row-hover-bg);
}

.guide-sidebar a.active {
  color: var(--accent);
  background: var(--row-active-bg);
}

.guide-content section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.guide-content section:last-child {
  border-bottom: none;
}

.guide-content h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.guide-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--accent);
}

.guide-content p {
  margin-bottom: 14px;
}

.guide-content ul {
  margin: 12px 0;
}

.guide-content li {
  padding: 4px 0;
  padding-left: 20px;
  color: var(--text-mid);
  font-size: 0.92rem;
  position: relative;
}

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

.mobile-guide-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}

.mobile-guide-toggle::after {
  content: ' \25BE';
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-sidebar {
    position: static;
    max-height: none;
    display: none;
  }

  .guide-sidebar.open {
    display: block;
    margin-bottom: 24px;
  }

  .mobile-guide-toggle {
    display: block;
  }
}

/* ============================================
   Privacy / License Pages
   ============================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page h1 {
  margin-bottom: 12px;
}

.legal-page .legal-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-page p {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-page ul {
  margin: 12px 0 20px;
}

.legal-page li {
  padding: 4px 0;
  padding-left: 20px;
  color: var(--text-mid);
  font-size: 0.92rem;
  position: relative;
}

.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================
   Support Page
   ============================================ */

.support-hero {
  text-align: center;
  padding: 80px 0 48px;
}

/* FAQ Accordion */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

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

.faq-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 4px 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  margin-bottom: 4px;
}

.faq-answer-inner p {
  font-size: 0.92rem;
}

.faq-answer-inner ul {
  margin: 8px 0;
}

.faq-answer-inner li {
  padding: 3px 0;
  padding-left: 18px;
  color: var(--text-mid);
  font-size: 0.9rem;
  position: relative;
}

.faq-answer-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
}

.contact-card .card-icon {
  margin: 0 auto 12px;
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
