/* Legal page styles (Terms of Service, Privacy Policy) */

.legal-body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

/* ---- NAV ---- */
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5vw;
  border-bottom: 1px solid var(--bg-alt);
  position: sticky;
  top: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.legal-nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--fg);
  text-decoration: none;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.legal-nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-nav-links a:hover {
  color: var(--fg);
}

/* Reuse btn-nav-cta from blog.css pattern */
.btn-nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.btn-nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

/* ---- MAIN LAYOUT ---- */
.legal-main {
  padding: 80px 5vw 120px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

/* ---- HEADER ---- */
.legal-header {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid var(--bg-alt);
}

.legal-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
}

.legal-header h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 16px;
}

.legal-header h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.legal-updated {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---- BODY CONTENT ---- */
.legal-body-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
}

.legal-intro {
  font-size: 19px;
  line-height: 1.7;
  color: var(--fg-muted);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin-bottom: 48px;
}

.legal-body-content h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--fg);
  margin: 52px 0 16px;
  line-height: 1.2;
}

.legal-body-content h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
  margin: 32px 0 12px;
}

.legal-body-content p {
  margin-bottom: 20px;
}

.legal-body-content strong {
  font-weight: 700;
  color: var(--fg);
}

.legal-body-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  transition: color 0.2s ease;
}

.legal-body-content a:hover {
  color: var(--accent);
}

.legal-body-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--fg);
}

/* ---- LIST ---- */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border: 1.5px solid var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
}

.legal-list li {
  padding: 14px 20px 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 16px;
  line-height: 1.6;
}

.legal-list li:last-child {
  border-bottom: none;
}

.legal-list li::before {
  content: '·';
  position: absolute;
  left: 20px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

/* ---- FOOTER NAV ---- */
.legal-footer-nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-alt);
}

.legal-footer-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

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

/* ---- PAGE FOOTER ---- */
.legal-page-footer {
  border-top: 1px solid var(--bg-alt);
  background: var(--bg);
  padding: 40px 5vw;
}

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

.legal-page-footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
}

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

.legal-page-footer-links a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-page-footer-links a:hover {
  color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .legal-main {
    padding: 48px 6vw 80px;
  }

  .legal-header {
    margin-bottom: 40px;
    padding-bottom: 28px;
  }

  .legal-intro {
    font-size: 17px;
  }

  .legal-body-content {
    font-size: 16px;
  }

  .legal-page-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-nav-links a:not(.btn-nav-cta) {
    display: none;
  }
}
