/* ==========================================================================
   InovaCode Technologies Inc. — Legal Pages Stylesheet
   Loaded by privacy.html and terms-of-service.html ONLY.
   Theme: DARK  ·  Accent: violet / magenta
   ========================================================================== */

:root {
  --bg: #0B0E14;
  --bg-soft: #10141D;
  --surface: #151A26;
  --surface-2: #1B2130;
  --border: #252C3E;
  --text: #E8EAED;
  --text-muted: #A2AAB8;
  --text-dim: #7A8294;
  --accent: #8B5CF6;
  --accent-2: #EC4899;
  --accent-bright: #A78BFA;
  --grad: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Body-level theme background — legal pages load ONLY this stylesheet,
   so the background and text colors must be defined here. */
.legal-page {
  background-color: #0B0E14;
  color: #E8EAED;
}

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

/* ------------------------------- Header -------------------------------- */
/* Legal header is a <header> element (never a <section>) with a solid/gradient
   background so the scope-isolation rule below cannot clear it. */
.legal-header {
  background: linear-gradient(135deg, #151A26 0%, #1B2130 55%, #241A33 100%);
  border-bottom: 1px solid #252C3E;
}

.legal-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
}

.brand-name {
  color: #E8EAED;
  font-size: 17px;
}

.legal-home-link {
  color: #A78BFA;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid #252C3E;
  border-radius: 999px;
  background-color: #10141D;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-home-link:hover {
  border-color: #8B5CF6;
  color: #E8EAED;
}

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

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

.legal-content h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #E8EAED;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: #A78BFA;
  margin-bottom: 28px;
}

.legal-intro {
  font-size: 17px;
  color: #A2AAB8;
  margin-bottom: 36px;
}

/* --------------------------- Table of contents ------------------------- */
/* Styled via class selector only — never a bare nav rule. */
.toc {
  background-color: #151A26;
  border: 1px solid #252C3E;
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 14px;
}

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

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

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

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

/* ------------------------------- Sections ------------------------------ */
/* Scope isolation: guarantee legal sections are never polluted by homepage
   section background styling. Scoped to body content only. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 44px;
  padding-top: 24px;
  border-top: 1px solid #252C3E;
}

.legal-content section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #E8EAED;
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.legal-content section p {
  color: #A2AAB8;
  margin-bottom: 16px;
  font-size: 16px;
}

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

/* -------------------------------- Footer ------------------------------- */
.legal-footer {
  background-color: #10141D;
  border-top: 1px solid #252C3E;
}

.legal-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.legal-footer-links {
  display: flex;
  gap: 24px;
}

.legal-footer-links a {
  color: #A2AAB8;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 640px) {
  .legal-content h1 {
    font-size: 32px;
  }

  .toc ol {
    columns: 1;
  }

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