/* ================================================================
   ONIX CLOUD — Legal Pages Stylesheet
   Extends style4.css design system for document pages
   ================================================================ */

/* Bridge missing CSS vars from style4 */
:root {
  --radius:    var(--r, 14px);
  --radius-sm: 8px;
  --text-secondary: rgba(232, 244, 255, 0.62);
}

/* ── Body ────────────────────────────────────────────────────── */
body { background: var(--bg, #060810); }

/* ── Legal page layout ───────────────────────────────────────── */
.legal-section {
  padding: 120px 0 80px;
  min-height: 100vh;
}
.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-header h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.58) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.legal-date, .legal-subtitle {
  color: var(--muted);
  font-size: 13px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* ── Table of contents ───────────────────────────────────────── */
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
}
.legal-toc h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.legal-toc ul { list-style: none; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
}
.legal-toc a:hover {
  color: var(--cyan);
  background: rgba(0,212,255,.06);
}

/* ── Content ─────────────────────────────────────────────────── */
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
@media (max-width: 600px) {
  .legal-content { padding: 1.25rem 1.25rem; }
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
  padding-top: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 12px;
}
.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-content li {
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a { color: var(--cyan); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: #fff; }

/* ── Info boxes ──────────────────────────────────────────────── */
.legal-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}
.highlight-box {
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p, .highlight-box li { color: var(--text-secondary); }
.highlight-box strong { color: var(--cyan); }
.highlight-success {
  background: rgba(31,209,88,.06);
  border: 1px solid rgba(31,209,88,.2);
}
.highlight-success strong { color: var(--green); }
.highlight-warning {
  background: rgba(255,167,38,.06);
  border: 1px solid rgba(255,167,38,.2);
}
.highlight-warning strong { color: #ffa726; }

/* ── Footer note ─────────────────────────────────────────────── */
.legal-footer-note {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 40px;
}
.legal-footer-note p { color: var(--muted); margin: 0; }

/* ── Navigation buttons at page bottom ───────────────────────── */
.legal-nav-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ── Simple footer for legal pages ───────────────────────────── */
.legal-page-footer {
  background: var(--bg1);
  border-top: 1px solid rgba(0,212,255,.07);
  padding: 2rem 0;
  margin-top: 4rem;
}
.legal-page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal-page-footer-copy {
  color: var(--muted);
  font-size: 12px;
}
.legal-page-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.legal-page-footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}
.legal-page-footer-links a:hover { color: var(--cyan); }

/* ── Cookie table ─────────────────────────────────────────────── */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 16px 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cookie-table thead tr {
  background: rgba(0,212,255,.06);
}
.cookie-table th {
  padding: 10px 16px;
  text-align: left;
  color: var(--cyan);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.cookie-table td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.cookie-table code {
  background: rgba(0,212,255,.08);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

/* ── Warning box ─────────────────────────────────────────────── */
.warning-box {
  background: rgba(255,167,38,.06);
  border: 1px solid rgba(255,167,38,.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
}
.warning-box p { color: var(--text-secondary); }
.warning-box strong { color: #ffa726; }
