/* MyMovies design-system roles (docs/design-system.md in the app repo) */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f1f1f3;
  --text: #1f2024;
  --text-muted: #63646b;
  --accent-fill: #f2b134;
  --link: #1f2024;
  --hairline: rgba(31, 32, 36, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #232327;
    --surface: #2f2f34;
    --text: #f4f4f6;
    --text-muted: #a1a1a8;
    --link: #f2b134;
    --hairline: rgba(244, 244, 246, 0.1);
  }
}

body {
  margin: 0;
  font-family: ui-rounded, "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

.lead {
  color: var(--text-muted);
  max-width: 540px;
}

.note {
  color: var(--text-muted);
  max-width: 540px;
  font-size: 0.95rem;
}

.store-badge {
  height: 56px;
  width: auto;
  display: block;
}

/* The shadow sits on a wrapper rounded like the icon: Safari clips a drop-shadow filter on an
   image to its square box, which darkened the icon's transparent corners. */
.screenshot-wrapper {
  max-width: 300px;
  border-radius: 26%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.app-shot {
  width: 100%;
  height: auto;
  display: block;
}

.lang-switch {
  font-size: 14px;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  .store-badge {
    height: 52px;
  }

  .screenshot-wrapper {
    max-width: 220px;
  }
}

/* ---------- Shared site footer (landing + policies) ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--link);
  text-decoration: underline;
}

.site-footer .sep {
  color: var(--text-muted);
  margin: 0 12px;
}

/* ---------- Policy pages (privacy + terms) ---------- */
.policy {
  max-width: 760px;
  line-height: 1.7;
}

.policy h1 {
  color: var(--text);
}

.policy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

.policy h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.policy p,
.policy li {
  color: var(--text-muted);
}

.policy ul {
  padding-left: 1.25rem;
}

.policy li {
  margin-bottom: 0.4rem;
}

.policy a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--accent-fill);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy a:hover {
  text-decoration-color: currentColor;
}

.policy strong {
  color: var(--text);
}

.policy .summary {
  background-color: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
}

.policy .summary p:last-child {
  margin-bottom: 0;
}

.policy .text-muted {
  color: var(--text-muted) !important;
}

.policy .back-link {
  color: var(--text-muted);
  text-decoration: none;
}

.policy .back-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.policy .border-top-subtle {
  border-top: 1px solid var(--hairline);
}
