/* Targetto — shared stylesheet for the legal/landing pages.
   Matches the app's own "neon arcade" dark identity (see
   ios/Core/Tokens/ColorTokens.swift `.dark`) rather than a generic
   light/dark-adaptive template — this is a permanently dark brand now,
   both in the app and here. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0916;
  --surface: #19162a;
  --surface-raised: #211d38;
  --text: #f6f5fb;
  --text-secondary: rgba(246, 245, 251, 0.62);
  --text-tertiary: rgba(246, 245, 251, 0.4);
  --accent: #aa66f9;
  --accent-2: #6098f9;
  --gold: #fac952;
  --border: rgba(246, 245, 251, 0.12);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft radial glow behind the header, echoing the app's Home dial glow.
   Deliberately sized to never exceed the viewport (no vw/negative-offset
   tricks) — a wider `position: fixed` glow was found to push the page's
   scrollable width past 100%, clipping every line of text against the
   right edge. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(170, 102, 249, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}

.brand span {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

header nav a:hover {
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 96px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin: 8px 0 4px;
}

h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
}

h1 + h2 {
  margin-top: 1.5rem;
}

p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

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

ul {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

ul li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent-2);
  text-decoration-color: rgba(96, 152, 249, 0.4);
}

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.lang-note {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

.updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Card — mirrors the app's `DSCard`: surface fill, subtle border, soft
   radius. Used for the legal-page nav grid and the "coming soon" note. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 1.5rem;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card-link:hover {
  border-color: rgba(170, 102, 249, 0.5);
  background: var(--surface-raised);
}

.card-link .arrow {
  color: var(--text-tertiary);
}

.todo {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 46ch;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

footer a {
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
}
