/* ========== LEGAL PAGES STYLESHEET ========== */
/* Loaded by privacy.html and terms-of-service.html */

:root {
  --primary: #5D1A3C;
  --primary-light: #7D2D55;
  --primary-dark: #3D0E26;
  --accent: #C4880D;
  --accent-light: #E5A820;
  --bg: #FDF8F2;
  --bg-alt: #F5EDE2;
  --text: #1A1517;
  --text-light: #4A4346;
  --text-muted: #6B6368;
  --white: #FFFFFF;
  --sand: #EDD9C4;
  --border: #D9CEBF;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
}

/* Legal Navbar - small top bar */
.legal-nav {
  background-color: var(--primary-dark);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav .legal-nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.legal-nav a {
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* Page Header */
.legal-header {
  background-color: var(--primary);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
}

.legal-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.legal-header p {
  color: var(--sand);
  font-size: 1rem;
}

/* Content wrapper */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Table of Contents */
.toc {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.toc h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.toc ol {
  padding-left: 1.5rem;
  columns: 2;
}

.toc ol li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  break-inside: avoid;
}

.toc ol li a {
  color: var(--primary);
  text-decoration: none;
}

.toc ol li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Section styling */
.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.legal-section h2 {
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-section p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Divider */
.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Back to top */
.back-to-top {
  text-align: center;
  margin: 2rem 0 0;
}

.back-to-top a {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition);
}

.back-to-top a:hover {
  background-color: var(--accent-light);
  color: var(--white);
}

/* Footer */
.legal-footer {
  background-color: var(--primary-dark);
  color: var(--sand);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
}

.legal-footer a {
  color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header h1 { font-size: 1.8rem; }
  .toc ol { columns: 1; }
  .legal-section h2 { font-size: 1.2rem; }
}
