/* =========================================================
   Kokera LP - Legal Pages
   ========================================================= */

.legal-page {
  background: var(--bg-base);
}

.legal-page .site-header {
  background: rgba(11, 11, 15, 0.88);
}

.legal-page .site-nav {
  gap: 18px;
  font-size: 13px;
}

.legal-hero {
  padding: 136px 0 64px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 235, 59, 0.12), transparent 46%),
    radial-gradient(ellipse at 86% 10%, rgba(255, 42, 42, 0.12), transparent 42%),
    var(--bg-base);
}

.legal-hero-inner {
  max-width: 920px;
}

.legal-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.legal-lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

.legal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.legal-main {
  padding: 0 0 120px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-toc-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc a {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color .15s ease;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-document {
  min-width: 0;
}

.legal-section {
  padding: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
}

.legal-section h2,
.legal-section h3 {
  letter-spacing: 0;
  line-height: 1.45;
}

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 900;
}

.legal-section h3 {
  margin: 28px 0 10px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.95;
}

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

.legal-section .legal-bullet,
.legal-section .legal-numbered {
  position: relative;
  padding-left: 18px;
}

.legal-section .legal-bullet::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.9em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-section .legal-numbered {
  color: var(--text);
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid rgba(255, 235, 59, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 235, 59, 0.08);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table th {
  width: 28%;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
}

.legal-table thead th {
  color: #1a1a00;
  background: var(--accent);
}

.legal-back {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .legal-hero {
    padding: 112px 0 48px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-section {
    padding: 24px 20px;
  }

  .legal-table {
    min-width: 520px;
  }
}
