/* ============================================================
   AMYLYNN ENTERPRISES, INC. — shared legal stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY
   ============================================================ */

:root {
  --bg: #0B0E14;
  --surface: #11151F;
  --surface-2: #161C29;
  --border: #232B3A;
  --border-strong: #2E3949;
  --text: #E8EAED;
  --muted: #B6BEC9;
  --accent: #0EA5E9;
  --accent-light: #38BDF8;
  --accent-dark: #0284C7;
  --accent-deep: #075985;
}

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

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

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Legal pages carry their own dark theme (never white) */
.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
}

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

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

/* ============================================================
   LEGAL HEADER (div/header element, solid gradient background)
   ============================================================ */

.legal-header {
  background: linear-gradient(120deg, #075985 0%, #0284C7 55%, #0EA5E9 100%);
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid #0B3650;
}

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

.legal-header .legal-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0A2940;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.legal-header .legal-meta {
  font-size: 0.95rem;
  color: #D6F0FC;
}

.legal-header .legal-meta span {
  margin: 0 8px;
}

/* ============================================================
   LEGAL LAYOUT
   ============================================================ */

.legal-content {
  padding: 56px 0 72px;
}

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

/* Scope isolation — guarantee legal sections are never repainted
   by homepage section styles even if an id or class collides. */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: #E8EAED !important;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 48px;
}

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

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

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.8rem;
}

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

/* ============================================================
   SECTIONS AND BODY COPY
   ============================================================ */

.legal-content section {
  margin-bottom: 48px;
}

.legal-content section:last-of-type {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

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

.legal-content p {
  color: var(--muted);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: var(--muted);
}

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

.legal-content strong {
  color: var(--text);
  font-weight: 700;
}

.legal-content .legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 20px 0;
}

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

.legal-content address {
  font-style: normal;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   BACK LINK / FOOTER
   ============================================================ */

.legal-footer {
  background: #080B10;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

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

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

.legal-footer .legal-footer-nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.legal-footer p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 18px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .legal-header h1 {
    font-size: 2rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-header .legal-meta span {
    display: block;
    margin: 4px 0;
  }
}
