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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: #1a1a2e;
  color: #ffffff;
  padding: 0 1.5rem;
}

.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-header .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-header nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.5rem;
  transition: color 0.15s;
}

.site-header nav a:hover { color: #ffffff; }

/* ─── Main Content ───────────────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ─── Hero (homepage only) ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.2rem;
  color: #4a4a6a;
  margin-bottom: 0.5rem;
}

.hero .operator {
  font-size: 0.9rem;
  color: #6b6b8a;
  margin-bottom: 2.5rem;
}

.hero .cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-primary {
  background: #1a1a2e;
  color: #ffffff;
}

.btn-primary:hover { background: #2d2d4e; }

.btn-outline {
  border: 2px solid #1a1a2e;
  color: #1a1a2e;
}

.btn-outline:hover { background: #f0f0f8; }

/* ─── Feature Cards (homepage) ─────────────────────────────────────────────── */
.features {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #f7f7fc;
  border: 1px solid #e4e4f0;
  border-radius: 10px;
  padding: 1.5rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #4a4a6a;
}

/* ─── Policy / Legal Pages ──────────────────────────────────────────────────── */
.page-header {
  border-bottom: 1px solid #e4e4f0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.page-header .meta {
  font-size: 0.85rem;
  color: #6b6b8a;
}

.policy-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f8;
}

.policy-body h2:first-of-type { border-top: none; margin-top: 0; }

.policy-body p {
  color: #333;
  margin-bottom: 0.9rem;
}

.policy-body ul, .policy-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #333;
}

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

.policy-body a { color: #1a1a2e; }

.placeholder {
  background: #fffbe6;
  border: 1px dashed #f0c040;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #7a5c00;
}

.placeholder strong { display: block; margin-bottom: 0.25rem; }

/* ─── Contact Page ──────────────────────────────────────────────────────────── */
.contact-block {
  background: #f7f7fc;
  border: 1px solid #e4e4f0;
  border-radius: 10px;
  padding: 1.75rem;
  max-width: 480px;
}

.contact-block h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.contact-block dl { display: grid; grid-template-columns: 100px 1fr; gap: 0.6rem 1rem; align-items: baseline; }
.contact-block dt { font-weight: 600; font-size: 0.85rem; color: #6b6b8a; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-block dd { font-size: 0.95rem; color: #1a1a2e; }
.contact-block dd a { color: #1a1a2e; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 1.75rem 1.5rem;
  margin-top: auto;
}

.site-footer .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer a:hover { color: #ffffff; }

/* ─── Subsection Headings ────────────────────────────────────────────────────── */
.policy-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 1.5rem 0 0.5rem;
}

/* ─── Definition List (ToS Section 2) ───────────────────────────────────────── */
dl.definitions {
  margin: 0.5rem 0 1rem;
}

dl.definitions dt {
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 0.9rem;
}

dl.definitions dd {
  margin: 0.2rem 0 0 1.5rem;
  color: #333;
}

/* ─── All-Caps Legal Blocks (ToS disclaimers) ───────────────────────────────── */
.legal-caps {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #333;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header .inner { height: 54px; }
  .site-header nav { display: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  main { padding: 2rem 1rem 3rem; }
  .features { grid-template-columns: 1fr; }
  .contact-block dl { grid-template-columns: 1fr; }
  .contact-block dt { margin-top: 0.5rem; }
}
