/* ==========================================================================
   Irw Consulting Inc. — Shared legal stylesheet
   Used by privacy.html and terms-of-service.html (loaded INSTEAD of style.css)
   ========================================================================== */

.legal-page {
  background-color: #0F1120;
  color: #E9EBF5;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: #818CF8;
  text-decoration: none;
}

a:hover {
  color: #E2C476;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Legal header
   -------------------------------------------------------------------------- */

.legal-header {
  background: linear-gradient(135deg, #171A2E 0%, #4F46E5 130%);
  border-bottom: 1px solid #2A2F52;
  padding: 48px 0 40px;
}

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

.legal-header__back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #A5B4FC;
  margin-bottom: 22px;
}

.legal-header__back:hover {
  color: #E2C476;
}

.legal-header__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E2C476;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.legal-header__meta {
  font-size: 15px;
  color: #C7CBF5;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.legal-content {
  padding: 48px 0 0;
}

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

.legal-toc {
  background-color: #161A2E;
  border: 1px solid #2A2F52;
  border-left: 4px solid #6366F1;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

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

.legal-toc a {
  font-size: 14px;
  line-height: 1.5;
  color: #A6ABC8;
}

.legal-toc a:hover {
  color: #E2C476;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Legal sections
   -------------------------------------------------------------------------- */

.legal-page .legal-content section {
  background-color: transparent !important;
  margin-bottom: 56px;
}

.legal-content section h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: #818CF8;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A2F52;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
}

.legal-content section h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #E9EBF5;
  margin: 26px 0 12px;
}

.legal-content section p {
  font-size: 16px;
  line-height: 1.75;
  color: #C2C7DE;
  margin-bottom: 18px;
}

.legal-content section ul {
  list-style: none;
  margin: 0 0 18px;
  padding-left: 4px;
}

.legal-content section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #C2C7DE;
  margin-bottom: 10px;
}

.legal-content section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background-color: #E2C476;
  border-radius: 50%;
}

.legal-content section strong {
  color: #E9EBF5;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Legal footer
   -------------------------------------------------------------------------- */

.legal-footer {
  background-color: #0E101E;
  border-top: 3px solid #6366F1;
  margin-top: 24px;
  padding: 40px 0 36px;
}

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

.legal-footer__brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #E9EBF5;
  margin-bottom: 14px;
}

.legal-footer p {
  font-size: 14px;
  line-height: 1.7;
  color: #A6ABC8;
  margin-bottom: 10px;
}

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

.legal-footer__nav {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2A2F52;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

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

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