/* Up & Down — shared styles for legal docs and landing page */

:root {
  --royal: #1A365D;
  --royal-darker: #0F1F35;
  --gold: #D4A94A;
  --gold-text: #8C6E1F;
  --cream: #F5F1E8;
  --bg: #F7F4ED;
  --surface: #FFFFFF;
  --text: #0F1F35;
  --text-secondary: #5A6B7E;
  --text-tertiary: #7B8896;
  --border: #D9D2C0;
  --divider: #E8E2D2;
  --shadow-card: 0 2px 8px rgba(15, 31, 53, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Site header (top bar) ---------- */

.site-header {
  background: var(--royal);
  border-bottom: 3px solid var(--gold);
  padding: 18px 24px;
}

.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.brand-tag {
  color: var(--gold);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: #FFFFFF;
}

/* ---------- Main content layout ---------- */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px 24px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .doc-card {
    padding: 28px 20px;
    border-radius: 10px;
  }
}

/* ---------- Document header (title block at top of policy) ---------- */

.doc-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.doc-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}

.doc-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.doc-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 14px;
}

.doc-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-tertiary);
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .doc-title {
    font-size: 24px;
  }
}

/* ---------- Headings within the doc ---------- */

h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 8px;
}

h1:first-child,
h2:first-child,
h3:first-child {
  margin-top: 0;
}

/* ---------- Body text ---------- */

p {
  margin-bottom: 14px;
  color: var(--text);
}

p + p {
  margin-top: 0;
}

ul {
  margin: 0 0 16px 0;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
  color: var(--text);
}

li::marker {
  color: var(--text-tertiary);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--text-secondary);
}

/* ---------- Special emphasis blocks (the all-caps notices) ---------- */

.notice {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.55;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  margin-bottom: 8px;
}

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

/* ---------- Address block ---------- */

.address {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.5;
}

.address strong {
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
  color: var(--royal);
}

/* ---------- Document footer ---------- */

.doc-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ---------- Site footer ---------- */

.site-footer {
  background: var(--royal-darker);
  color: var(--cream);
  padding: 28px 24px;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
}

.site-footer-inner {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  margin: 0 10px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin-bottom: 8px;
  opacity: 0.85;
}

.site-footer p:last-child {
  margin-bottom: 0;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- Landing page specific ---------- */

.hero {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-tagline {
  display: inline-block;
  background: var(--royal);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 36px;
}

.coming-soon-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.coming-soon-card h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

.coming-soon-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 18px;
}

.legal-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.legal-links a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--royal);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s ease;
}

.legal-links a:hover {
  background: var(--cream);
  border-color: var(--gold);
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
}
