/* Styles for TaskNest's simple pages (Privacy, Terms, Cookies, Contact).
   Self-contained on purpose: these pages don't load the whole app.
   Colours match style.css; data-theme follows the app's light/dark choice. */
:root {
  --bg: #ede8df; --surface: #ffffff; --border: #d8d0c4;
  --text: #18140e; --muted: #7a7064; --accent: #6D28D9;
}
[data-theme="dark"] {
  --bg: #1d1b18; --surface: #272420; --border: #3d3a35;
  --text: #f0ebe2; --muted: #9a948c; --accent: #A78BFA;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
}
.logo-task { color: var(--text); }
.logo-nest { color: var(--accent); }

.page-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid var(--border);
}
.page-bar a { text-decoration: none; }
.page-logo { display: flex; align-items: center; gap: 8px; font: 700 18px Georgia, serif; }
.page-logo-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #A855F7, #EC4899);
}
.page-home { font-size: 14px; font-weight: 600; color: var(--accent); }

main { flex: 1; padding: 64px 20px; }
.page-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px 32px;
}
.page-emoji { font-size: 40px; }
h1 { font: 700 clamp(24px, 5vw, 32px)/1.25 Georgia, serif; margin: 14px 0 12px; }
.page-card p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.page-back {
  display: inline-block; margin-top: 26px; padding: 12px 22px; border-radius: 12px;
  color: #fff; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #A855F7, #EC4899);
}

.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 32px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.site-footer-logo { font: 700 18px Georgia, serif; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.site-footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer-links a:hover, .site-footer-links a[aria-current] { color: var(--accent); text-decoration: underline; }
.site-footer-copy { font-size: 12.5px; color: var(--muted); }

/* ── The real pages: comfortable reading width, clear headings ── */
.legal-doc {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: clamp(28px, 5vw, 52px);
  line-height: 1.75; color: var(--text);
}
.legal-doc h1 { margin-top: 0; text-align: left; }
.legal-doc h2 { font: 700 21px/1.3 Georgia, serif; margin: 34px 0 10px; }
.legal-doc p, .legal-doc li { font-size: 16px; }
.legal-doc p { margin-bottom: 12px; }
.legal-doc ul { padding-left: 22px; margin-bottom: 12px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--accent); }
.legal-updated { color: var(--muted); font-size: 14px !important; }
.legal-quick {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 14px; padding: 18px 22px; margin: 22px 0 8px;
}
.legal-quick h2 { margin-top: 0; font-size: 18px; }
.legal-quick ul, .legal-quick p { margin-bottom: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.legal-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.legal-table td:first-child { width: 38%; }
@media (max-width: 560px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100% !important; }
  .legal-table thead { display: none; }
  .legal-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .legal-table td { border: none; padding: 4px 0; }
}
/* blanks still to fill in before going live — bright on purpose */
mark.todo { background: #FDE68A; color: #713F12; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
