@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/projects/steady/fonts/InstrumentSerif-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/static/projects/steady/fonts/InstrumentSerif-Italic.woff2') format('woff2');
}

:root {
  --deep-water: #21444D;
  --steady-teal: #3E6E79;
  --seaglass: #9BB9BE;
  --mist: #EDF3F2;
  --paper: #FBFAF7;
  --clay: #C97F5F;
  --text-2: #5E7A81;
  --border: rgba(33, 68, 77, 0.10);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.legal-page {
  margin: 0;
  background: var(--mist);
  color: var(--deep-water);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(237, 243, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 185, 190, 0.25);
}

.legal-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-water);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--steady-teal);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover { background: var(--deep-water); }

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}

.legal-chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(62, 110, 121, 0.12);
  color: var(--steady-teal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-main h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.legal-updated {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.legal-lead {
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 400;
}

.legal-content section {
  margin-bottom: 28px;
  scroll-margin-top: 88px;
}

.legal-content h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.legal-content p,
.legal-content li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(33, 68, 77, 0.86);
  font-weight: 400;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--steady-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 28px;
}

.legal-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--steady-teal);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.legal-btn:hover { background: var(--deep-water); }

.legal-btn--ghost {
  background: transparent;
  color: var(--deep-water);
  box-shadow: inset 0 0 0 1px var(--border);
}

.legal-btn--ghost:hover {
  background: var(--paper);
  color: var(--deep-water);
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--paper);
  padding: 28px;
}

.legal-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-footer-links a {
  color: var(--text-2);
  text-decoration: none;
}

.legal-footer-links a:hover { color: var(--deep-water); }

@media (max-width: 640px) {
  .legal-header-inner,
  .legal-main { padding-left: 20px; padding-right: 20px; }
  .legal-main { padding-top: 40px; }
}
