/* ==========================================================================
   AltixDigital LLC — legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html (never style.css)
   Light theme body: #F9F8FC background, #14121E text, fuchsia accent #D946EF
   ========================================================================== */

/* Scope isolation: legal pages define their own body background/color */
.legal-page {
  background-color: #F9F8FC;
  color: #14121E;
}

:root {
  --bg: #F9F8FC;
  --surface: #FFFFFF;
  --ink: #14121E;
  --muted: #3A3448;
  --accent: #D946EF;
  --accent-dark: #C026D3;
  --accent-soft: #F5D0FE;
  --accent-deep: #2E0A33;
  --line: #ECE9F4;
  --line-strong: #DED9EC;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  background-color: #F9F8FC;
  color: #14121E;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --------------------------------------------------------------------------
   Legal header (div/header, never section) — gradient background, white title
   -------------------------------------------------------------------------- */
.legal-header {
  background: linear-gradient(135deg, #2E0A33 0%, #C026D3 55%, #D946EF 100%);
  padding: 56px 0 64px;
  border-bottom: 3px solid #D946EF;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 28px;
}

.legal-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background-color: #D946EF;
  box-shadow: 6px 6px 0 #F5D0FE;
}

.legal-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F5D0FE;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

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

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

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Scope isolation: any <section> that appears inside legal content keeps a
   transparent background so it never inherits the homepage section fills. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */
.toc {
  position: sticky;
  top: 24px;
  background-color: #FFFFFF;
  border: 1px solid #ECE9F4;
  border-top: 3px solid #D946EF;
  border-radius: 12px;
  padding: 24px;
}

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

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  margin-bottom: 4px;
}

.toc ol li a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3A3448;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toc ol li a::before {
  content: counter(toc) ".";
  color: #C026D3;
  font-weight: 800;
}

.toc ol li a:hover {
  background-color: #F5D0FE;
  color: #2E0A33;
}

/* --------------------------------------------------------------------------
   Article body
   -------------------------------------------------------------------------- */
.legal-article {
  background-color: #FFFFFF;
  border: 1px solid #ECE9F4;
  border-radius: 12px;
  padding: 48px 52px;
}

.legal-article h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #C026D3;
  margin: 44px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.legal-article h2:first-child {
  margin-top: 0;
}

.legal-article h3 {
  font-size: 19px;
  font-weight: 800;
  color: #14121E;
  margin: 28px 0 12px;
}

.legal-article p {
  font-size: 16px;
  line-height: 1.8;
  color: #3A3448;
  margin-bottom: 18px;
}

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

.legal-article a {
  color: #C026D3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-article ul,
.legal-article ol {
  margin: 0 0 20px 24px;
}

.legal-article li {
  font-size: 16px;
  line-height: 1.75;
  color: #3A3448;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */
.legal-footer {
  background-color: #FFFFFF;
  border-top: 3px solid #D946EF;
  padding: 28px 0;
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-footer-inner p {
  font-size: 14px;
  color: #6B6479;
}

.legal-footer-inner nav {
  display: flex;
  gap: 22px;
}

.legal-footer-inner a {
  font-size: 14px;
  font-weight: 700;
  color: #C026D3;
}

.legal-footer-inner a:hover {
  color: #2E0A33;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .legal-article {
    padding: 36px 28px;
  }

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

@media (max-width: 560px) {
  .legal-article {
    padding: 28px 20px;
  }

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

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

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
