/* Self-hosted Inter font (variable font, weights 300-700) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS Custom Properties */
:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent: #00f0ff;
  --accent-dark: #00c4d4;
  --border: #2a2a2a;
  --shadow: rgba(0, 240, 255, 0.1);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nav */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.legal-logo {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.legal-logo .tech-suffix {
  color: var(--accent);
}

.legal-nav-back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.legal-nav-back:hover {
  color: var(--accent);
}

/* Main content area */
.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .legal-main {
    padding: 4rem 2.5rem 6rem;
  }
}

/* Page header */
.legal-page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.legal-page-title .accent {
  color: var(--accent);
}

.legal-last-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Sections */
.legal-section {
  margin-bottom: 2.75rem;
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

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

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.legal-section li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--accent-dark);
}

/* Pending-review banner — shown until attorney sign-off is complete */
.legal-review-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: #d4a843;
  line-height: 1.6;
}

.legal-review-banner strong {
  color: #f59e0b;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Notice / callout box */
.legal-notice {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-notice p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.legal-notice strong {
  color: var(--accent);
}

/* Footer */
.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  text-align: center;
  padding: 2rem 1.5rem;
}

.legal-footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.legal-footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}
