/* Shared styles for Stardehl legal pages — matches main site tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0f2240;
  --navy-light: #2a4a80;
  --blue: #1e5fcc;
  --bg: #f8f7f4;
  --white: #ffffff;
  --border: #dde2ea;
  --text: #0f1c2e;
  --muted: #6b7a90;
  --subtle: #9aa3b0;
  --accent: #c8a96e;
  --radius: 4px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
}
.nav-logo { display: flex; align-items: baseline; gap: 3px; text-decoration: none; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.02em;
}
.nav-logo-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.btn-ghost-sm {
  color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 20px; border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost-sm:hover { border-color: var(--navy); background: var(--bg); }
.btn-navy-sm {
  background: var(--navy); color: #fff; padding: 9px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.btn-navy-sm:hover { background: var(--navy-light); }

/* Same max-width as main site sections (e.g. .section-wrap) — no card/box */
.legal-page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 48px 100px;
}
.legal-doc {
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.legal-updated {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 720px;
}
.legal-doc > h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}
.legal-lead {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 720px;
}
.legal-doc ul, .legal-doc ol {
  margin: 12px 0 20px 1.25rem;
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  max-width: 720px;
}
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--blue); text-decoration: none; font-weight: 500; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc strong { font-weight: 600; color: var(--navy); }

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 48px 32px;
  margin-top: auto;
}
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 24px;
  font-size: 12px; color: rgba(255, 255, 255, 0.25); font-weight: 300;
}
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-legal a {
  font-size: 12px; color: rgba(255, 255, 255, 0.45); text-decoration: none; font-weight: 300;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #fff; }
.footer-legal a[aria-current="page"] { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 960px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .legal-page { padding: 56px 24px 72px; }
  footer { padding: 24px 24px 28px; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }
}
