/* ============================================================
   Juyaz — Shared Legal Stylesheet (Privacy + Terms)
   Dark theme · Slate-blue accent
   Loaded standalone by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #101215;
  color: #E9EEF2;
}

:root {
  --bg: #101215;
  --bg-deep: #0D0F12;
  --bg-soft: #121E2B;
  --surface: #161C24;
  --surface-2: #1B232E;
  --border: #253140;
  --accent: #5B7C99;
  --accent-dark: #486581;
  --accent-light: #CBD5E1;
  --text: #E9EEF2;
  --muted: #A3B3C2;
  --muted-2: #7E8FA0;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.legal-header {
  background: linear-gradient(135deg, #0D1520 0%, #1B2A3A 60%, #22374B 100%);
  border-bottom: 3px solid #5B7C99;
  padding: 72px 0 56px;
}

.legal-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 26px;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: #E9EEF2;
}

.legal-header h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #E9EEF2;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 15px;
  color: #A3B3C2;
}

/* ---------- Content layout ---------- */
.legal-content {
  padding: 56px 0 72px;
}

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

/* Scope isolation: never apply a homepage section background here */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */
.toc {
  background-color: #161C24;
  border: 1px solid #253140;
  border-left: 4px solid #5B7C99;
  border-radius: 10px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.toc-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.toc li {
  margin-bottom: 10px;
  break-inside: avoid;
}

.toc a {
  font-size: 15px;
  font-weight: 600;
  color: #A3B3C2;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: #CBD5E1;
}

/* ---------- Article ---------- */
.legal-article section {
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #253140;
}

.legal-article section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #CBD5E1;
  margin-bottom: 18px;
  padding-top: 6px;
}

.legal-article p {
  font-size: 16px;
  color: #A3B3C2;
  margin-bottom: 16px;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article strong {
  color: #E9EEF2;
  font-weight: 700;
}

.legal-article a {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: #E9EEF2;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #0D0F12;
  border-top: 3px solid #5B7C99;
  padding: 28px 0;
}

.legal-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-footer p {
  font-size: 14px;
  color: #7E8FA0;
}

.legal-footer a {
  color: #CBD5E1;
  font-weight: 600;
}

.legal-footer a:hover {
  color: #E9EEF2;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .legal-header {
    padding: 52px 0 42px;
  }

  .legal-header h1 {
    font-size: 34px;
  }

  .toc ol {
    columns: 1;
  }

  .legal-article h2 {
    font-size: 22px;
  }
}
