/* =========================================================
   Daily DAT & DS Tracker — Legal pages stylesheet
   Loaded after styles.css on:
     - privacy-policy.php
     - terms-of-service.php
   Adds typography for long-form policy text and small
   refinements to header/footer behaviour.
   ========================================================= */

/* -------- Brand link & header CTA -------- */
a.brand {
  text-decoration: none;
  color: inherit;
}

.header-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.header-cta span { margin-left: 2px; opacity: .6; }

/* -------- Page shell -------- */
.legal-page {
  background: var(--bg);
}

.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* -------- Title block -------- */
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 500;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}
.legal-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.legal-lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 36px;
  max-width: 60ch;
}
.legal-lead a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color .15s ease;
  text-decoration: none;
}
.legal-lead a:hover { border-color: var(--accent); }

/* -------- TL;DR card -------- */
.legal-tldr {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 0 0 56px;
}
.legal-tldr p { margin: 0; }
.legal-tldr-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px !important;
}
.legal-tldr-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* -------- Sections -------- */
.legal-section {
  padding-top: 36px;
  margin-bottom: 8px;
  border-top: 1px solid var(--line-2);
}
.legal-section:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 0 0 10px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 0 0 18px;
}
.legal-section li {
  margin-bottom: 8px;
}
.legal-section li::marker {
  color: var(--accent);
}

.legal-section strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-section em {
  font-style: italic;
  font-family: var(--font-display);
}

.legal-section code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

.legal-section a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .15s ease, color .15s ease;
}
.legal-section a:hover {
  border-bottom-color: var(--accent);
}

/* -------- Static footer -------- */
.static-footer {
  border-top: 1px solid var(--line-2);
  padding: 28px 24px;
  background: var(--bg);
  margin-top: 40px;
}
.static-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.static-foot-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.static-foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.static-foot-links a:hover { color: var(--accent); }
.static-foot-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* -------- Login page footer link styling (loaded only on legal pages
   normally, but doesn't hurt to keep tiny rules here for consistency
   if you also load this CSS on login.php) -------- */
.login-foot a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.login-foot a:hover { color: var(--accent); }
.login-fine a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .15s ease, color .15s ease;
}
.login-fine a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
  .legal-shell { padding: 36px 18px 60px; }
  .legal-tldr { padding: 16px 18px; }
  .legal-section h2 { font-size: 21px; }
  .static-footer { padding: 24px 18px; }
  .static-footer-inner { justify-content: center; text-align: center; }
}
