/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ADA-compliant light palette */
  --bg:          #FFFFFF;   /* page background */
  --surface:     #F7F7F8;   /* subtle card / nav background */
  --border:      #D1D5DB;   /* separation */

  --text:        #111827;   /* primary text — 18.1:1 on white */
  --text-muted:  #4B5563;   /* secondary text — 7.3:1 on white (WCAG AA) */

  --link:        #1D4ED8;   /* links — 6.6:1 on white (WCAG AA) */
  --link-hover:  #1E40AF;

  --btn-bg:      #111827;   /* primary button background */
  --btn-text:    #FFFFFF;   /* primary button text — 16.7:1 */

  --callout-border: #374151;

  /* Spacing / shape */
  --radius:      12px;
  --radius-sm:   8px;
  --max-width:   860px;
  --nav-height:  64px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-logo span.icon { font-size: 1.35rem; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

/* ===== Main ===== */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .highlight {
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-email {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 2px solid var(--btn-bg);
}
.btn-primary:hover {
  background: #1F2937;
  border-color: #1F2937;
  color: var(--btn-text);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ===== Legal pages ===== */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.page-header .effective-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.legal-content p {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
}
.legal-content ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content .callout {
  background: var(--surface);
  border-left: 3px solid var(--callout-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.legal-content a {
  color: var(--link);
}
.legal-content a:hover {
  color: var(--link-hover);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
  main { padding: 32px 16px 60px; }
}
