/* ============================================================
   HyggeWorks — shared legal stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY
   ============================================================ */

:root {
  --bg: #0E1B16;
  --bg-2: #14241D;
  --surface: #182A22;
  --surface-2: #1E3329;
  --line: #2B4638;
  --paper: #F4EEE1;
  --paper-dim: #C9D3CA;
  --muted: #9FB3A6;
  --accent: #E9B949;
  --accent-2: #63C9A1;
}

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

html { scroll-behavior: smooth; }

.legal-page {
  background-color: var(--bg);
  color: var(--paper);
  font-size: 16px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- header ---------- */
.legal-header {
  background: linear-gradient(135deg, #0C1813 0%, #14301F 60%, #0A1511 100%);
  border-bottom: 1px solid var(--line);
  padding: 78px 24px 46px;
}

.legal-header .header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.legal-header h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 14px;
}

.legal-header p {
  font-size: 15px;
  color: var(--paper-dim);
  max-width: 660px;
}

/* ---------- content ---------- */
.legal-content {
  padding: 46px 0 60px;
  background-color: var(--bg);
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* scope isolation — legal sections never carry their own background */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- table of contents ---------- */
.toc {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}

.toc ol li { font-size: 14px; }

.toc ol li a {
  display: block;
  padding: 7px 0;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}

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

.toc ol li .num {
  display: inline-block;
  width: 26px;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- sections ---------- */
.legal-content section {
  margin-bottom: 44px;
  padding-top: 6px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin: 22px 0 10px;
}

.legal-content p {
  font-size: 16px;
  color: var(--paper-dim);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 22px;
  color: var(--paper-dim);
  font-size: 16px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

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

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

.legal-content .highlight-box {
  background-color: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.legal-content .highlight-box p {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 15px;
}

.legal-content .back-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
}

.legal-content .back-top:hover { color: var(--accent); }

/* ---------- footer ---------- */
.legal-footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
}

.legal-footer .footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer .brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--paper);
}

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

.legal-footer .footer-links {
  display: flex;
  gap: 20px;
}

.legal-footer .footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper-dim);
}

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

.legal-footer .footer-copy { font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .toc ol { grid-template-columns: 1fr; }
  .legal-footer .footer-inner { flex-direction: column; align-items: flex-start; }
}
