/* Shared styles for Aven's public pages (privacy policy, terms of use).
   Colors follow the app icon: warm gold at the top, Aven blue below. */

:root {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #5f6672;
  --line: #e1e6ee;
  --accent: #1d6fd8;
  --accent-soft: rgba(83, 166, 253, 0.13);
  --glow-gold: rgba(255, 206, 112, 0.42);
  --glow-blue: rgba(83, 166, 253, 0.30);
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.04), 0 12px 32px rgba(20, 30, 50, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c11;
    --surface: #12151c;
    --text: #eceef2;
    --muted: #9aa2ae;
    --line: #232834;
    --accent: #53a6fd;
    --accent-soft: rgba(83, 166, 253, 0.14);
    --glow-gold: rgba(255, 196, 92, 0.15);
    --glow-blue: rgba(83, 166, 253, 0.20);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(36rem 20rem at 50% -6rem, var(--glow-gold), transparent 70%),
    radial-gradient(60rem 30rem at 50% 2rem, var(--glow-blue), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
}

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

.page { max-width: 46rem; margin: 0 auto; padding: 0 16px 3.5rem; }

/* Header: app icon, name, page title */

.hero { text-align: center; padding: 3.25rem 0 1.75rem; }

.hero-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  border-radius: 22.5%;
  box-shadow: 0 10px 28px rgba(30, 80, 160, 0.28);
}

.brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0.35rem 0 0.4rem;
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.updated { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Switch between the two pages */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 1.5rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.tabs a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.tabs a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* The document itself */

.sheet {
  padding: 2rem 2.25rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sheet > :first-child { margin-top: 0; }

.sheet > h2:first-child { padding-top: 0; border-top: 0; }

h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 2.4rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
  line-height: 1.3;
}

.num {
  flex: none;
  min-width: 1.9rem;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

h3 { margin: 1.5rem 0 0.25rem; font-size: 1rem; }

p, ul { margin: 0.75rem 0; }

ul { padding-left: 1.25rem; }

li { margin: 0.4rem 0; }

li::marker { color: var(--accent); }

/* Highlighted box (summary, important notices) */

.callout {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: var(--accent-soft);
}

.callout h2 {
  display: block;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout > :last-child { margin-bottom: 0; }

.contact { font-style: normal; }

.button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

footer a { color: inherit; }

@media (max-width: 560px) {
  .hero { padding-top: 2.5rem; }
  .hero-icon { width: 76px; height: 76px; }
  h1 { font-size: 1.85rem; }
  .sheet { padding: 1.4rem 1.15rem 1.75rem; border-radius: 18px; }
  h2 { gap: 0.55rem; font-size: 1.12rem; }
}
