/* ==========================================
   SHARED LEGAL PAGE STYLES — RosterWise™
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1a2744;
  --navy-dark: #0f1a2e;
  --navy-light: #243352;
  --gold: #c8a44e;
  --gold-light: #dabb6a;
  --cream: #f8f6f0;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #5a6178;
  --text-light: rgba(255, 255, 255, 0.85);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

/* Navigation (sticky back link) */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(200, 164, 78, 0.2);
}

.legal-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.legal-nav .brand {
  font-weight: 800;
  color: var(--gold);
  font-size: 16px;
}

.legal-nav .brand span { color: var(--white); }

/* Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 40px);
}

.legal-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-light);
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 12px 0 16px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

.legal-content li { margin-bottom: 6px; }

.legal-content a {
  color: var(--gold-dark, #a88a3a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-content strong { color: var(--navy); }

.legal-content .summary-box {
  background: var(--white);
  border: 1px solid #e0dcd4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.legal-content .summary-box p {
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-content .summary-box p:last-child { margin-bottom: 0; }

/* Footer */
.legal-footer {
  background: var(--navy-dark);
  padding: 24px 0;
  text-align: center;
}

.legal-footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-footer a:hover { color: var(--gold); }
