/* ============================================================
   Legal pages (privacy.html, terms.html)
   Self-contained — does not depend on styles.css
   ============================================================ */

:root {
  --bg: #0A0A0C;
  --surface: #0F0F12;
  --ocean: #4A8CB5;
  --mist: #7FB5D9;
  --frost: #B8D8E8;
  --white: #FFFFFF;
  --txt: rgba(255, 255, 255, 0.92);
  --txt-70: rgba(255, 255, 255, 0.70);
  --txt-45: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.08);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.legal-body {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(ellipse 1200px 800px at 50% 20%, rgba(74,140,181,0.10), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  position: relative;
}

.legal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
}

.legal__back {
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal__logo {
  width: 32px;
  height: 32px;
  display: block;
}
.legal__brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.4px;
  color: var(--white);
}

.legal__back-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--txt-70);
  transition: color 0.15s ease;
}
.legal__back-link:hover {
  color: var(--ocean);
}

.legal__content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--txt);
}

.legal__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.legal__updated {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--txt-45);
  margin-bottom: 48px;
  text-transform: uppercase;
}

.legal__content h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal__content p {
  margin-bottom: 16px;
  color: var(--txt);
}

.legal__content strong {
  color: var(--white);
  font-weight: 600;
}

.legal__content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal__content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--txt-70);
}

.legal__content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ocean);
}

.legal__content a,
.legal__link {
  color: var(--ocean);
  border-bottom: 1px solid rgba(74, 140, 181, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal__content a:hover,
.legal__link:hover {
  color: var(--mist);
  border-bottom-color: var(--mist);
}

.legal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--txt-45);
}

.legal__footer a {
  color: var(--txt-70);
  transition: color 0.15s ease;
}
.legal__footer a:hover {
  color: var(--ocean);
}

@media (max-width: 600px) {
  .legal { padding: 32px 24px 64px; }
  .legal__title { font-size: 40px; }
  .legal__content { font-size: 15px; }
  .legal__content h2 { font-size: 21px; }
  .legal__footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
