/* ==========================================================================
   AGK MOTORWERKS — Shared legal stylesheet (privacy + terms)
   Loaded by legal pages ONLY. Dark theme · steel-blue accent.
   ========================================================================== */

.legal-page {
  background-color: #101317;
  color: #e9edf2;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.legal-page * {
  box-sizing: border-box;
}

.legal-page a {
  color: #7396b5;
  text-decoration: none;
}

.legal-page a:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

/* Header — must be a div/header (not section), solid/gradient background */
.legal-header {
  background: linear-gradient(135deg, #16202b 0%, #101317 60%);
  border-bottom: 1px solid #2a3542;
  padding: 56px 0 40px;
}

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

.legal-header .back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #7396b5;
  margin-bottom: 22px;
}

.legal-header .back-link:hover {
  color: #e2e8f0;
}

.legal-header h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.legal-header .legal-updated {
  font-size: 14px;
  color: #a7b3c2;
}

/* Body content */
.legal-content {
  padding: 48px 0 72px;
}

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

/* Scope isolation — never paint dark backgrounds over legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Table of contents */
.toc {
  background-color: #161b21;
  border: 1px solid #262e38;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7396b5;
  margin-bottom: 14px;
}

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

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

.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  color: #5b7c99;
  font-weight: 700;
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}

.toc ol a {
  font-size: 15px;
  color: #a7b3c2;
}

.toc ol a:hover {
  color: #e2e8f0;
}

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

.legal-content h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a3542;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #7396b5;
  margin: 24px 0 12px;
}

.legal-content p {
  color: #c3cdd9;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 24px;
  color: #c3cdd9;
}

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

/* Footer */
.legal-footer {
  background-color: #0c0f13;
  border-top: 1px solid #2a3542;
  padding: 32px 0;
}

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

.legal-footer p {
  font-size: 14px;
  color: #a7b3c2;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #7396b5;
}

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

@media (max-width: 600px) {
  .legal-header h1 {
    font-size: 27px;
  }

  .legal-content h2 {
    font-size: 21px;
  }
}
