/* Facedown — Shared Web Styles */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: rgb(10, 9, 8);
  --card-bg: rgb(26, 23, 20);
  --card-border: rgba(46, 38, 33, 0.6);
  --text-primary: #ffffff;
  --text-secondary: rgb(212, 204, 199);
  --text-tertiary: rgb(138, 133, 128);
  --text-quaternary: rgb(92, 87, 82);
  --accent: rgb(196, 148, 107);
  --max-width: 720px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-stack);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── Navigation / Back Link ── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.75;
}

.back-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ── Brand ── */

.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* ── Landing Hero ── */

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

.hero-brand {
  font-size: 3rem;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── App Store Badge ── */

.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ── Legal Pages ── */

.legal h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal .effective-date {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal ul {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--card-border);
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 24px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

footer a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

footer .copyright {
  color: var(--text-quaternary);
  font-size: 0.75rem;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .container {
    padding: 32px 20px;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero-brand {
    font-size: 2.25rem;
  }

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

  .legal h1 {
    font-size: 1.5rem;
  }
}
