/* ═══════════════════════════════════════════
   OWN360 LEGAL PAGES
   Shared styles for Privacy, Terms, Cookies,
   Security, Sitemap, and 404
═══════════════════════════════════════════ */


/* ───────────────────────────────────────────
   LEGAL CONTENT STRUCTURE
─────────────────────────────────────────── */

.legal-body {
  max-width: 800px;
}

.legal-body .content-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 16px;
  margin-top: 40px;
}

.legal-body .content-block h2:first-child {
  margin-top: 0;
}

.legal-body .content-block p {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-body .content-block p strong {
  color: var(--ink);
}

.legal-body .content-block a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.legal-body .content-block a:hover {
  color: var(--forest2);
}

/* ── Lists ── */
.legal-body .content-block ul,
.legal-body .content-block ol {
  margin: 12px 0 20px 0;
  padding-left: 24px;
}

.legal-body .content-block li {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-body .content-block li strong {
  color: var(--ink);
}

/* ── Tables ── */
.legal-body .content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}

.legal-body .content-block th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 16px;
  border-bottom: 2px solid var(--rule);
  text-align: left;
  font-weight: 500;
  background: var(--cream2);
  white-space: nowrap;
}

.legal-body .content-block td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule2);
  color: var(--ink);
  vertical-align: top;
  line-height: 1.65;
}

.legal-body .content-block td strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-body .content-block td a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body .content-block tr:hover {
  background: var(--inka02);
}

/* ── Highlight Box Label ── */
.hl-box-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ── Effective date line ── */
.legal-body .content-block > p:first-child {
  font-size: 13px;
  color: var(--faint);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule2);
  margin-bottom: 32px;
}


/* ───────────────────────────────────────────
   PAGE CTA BLOCK (bottom of legal pages)
─────────────────────────────────────────── */

.page-cta {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 60px 64px;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.page-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.page-cta p {
  font-size: 15px;
  color: var(--faint);
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-cta a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-cta .btn-group {
  justify-content: center;
  margin-top: 20px;
}


/* ───────────────────────────────────────────
   SITEMAP GRID
─────────────────────────────────────────── */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.sitemap-col h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--forest);
}

.sitemap-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sitemap-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--faint);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule2);
  transition: color .15s, padding-left .15s;
}

.sitemap-link:hover {
  color: var(--forest);
  padding-left: 6px;
}


/* ───────────────────────────────────────────
   404 PAGE
─────────────────────────────────────────── */

.notfound-wrap {
  text-align: center;
  padding: 100px 40px 120px;
  max-width: 700px;
  margin: 0 auto;
}

.nf-code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 20vw, 200px);
  font-weight: 900;
  color: var(--forest);
  line-height: .85;
  letter-spacing: -.04em;
  margin-bottom: 16px;
  opacity: .15;
}

.nf-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  color: var(--ink);
}

.nf-sub {
  font-size: 16px;
  color: var(--faint);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.nf-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  transition: border-color .15s, color .15s, background .15s;
}

.nf-link:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--flit);
}


/* ───────────────────────────────────────────
   RESPONSIVE — LEGAL PAGES
─────────────────────────────────────────── */

@media (max-width: 900px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .page-cta {
    padding: 36px 24px 48px;
  }
}

@media (max-width: 768px) {
  .legal-body .content-block table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .notfound-wrap {
    padding: 60px 20px 80px;
  }

  .nf-links {
    gap: 8px;
  }

  .nf-link {
    font-size: 10px;
    padding: 7px 12px;
  }
}

@media (max-width: 600px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-cta h3 {
    font-size: 20px;
  }

  .legal-body .content-block h2 {
    font-size: 19px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .notfound-wrap {
    padding: 40px 16px 60px;
  }

  .nf-code {
    font-size: 100px;
  }
}


/* ───────────────────────────────────────────
   DARK MODE OVERRIDES — LEGAL
─────────────────────────────────────────── */

[data-theme="dark"] .legal-body .content-block td {
  border-bottom-color: var(--rule2);
}

[data-theme="dark"] .legal-body .content-block th {
  background: var(--cream2);
  border-bottom-color: var(--rule);
}

[data-theme="dark"] .legal-body .content-block a {
  color: var(--forest);
}

[data-theme="dark"] .hl-box-label {
  color: var(--forest);
}

[data-theme="dark"] .page-cta {
  border-top-color: var(--rule);
}

[data-theme="dark"] .sitemap-col h3 {
  border-bottom-color: var(--forest);
}

[data-theme="dark"] .sitemap-link {
  color: var(--faint);
  border-bottom-color: var(--rule2);
}

[data-theme="dark"] .sitemap-link:hover {
  color: var(--forest);
}

[data-theme="dark"] .nf-code {
  color: var(--forest);
  opacity: .12;
}

[data-theme="dark"] .nf-link {
  border-color: var(--rule);
  color: var(--faint);
}

[data-theme="dark"] .nf-link:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--flit);
}
