/* Legal-style content pages: privacy, terms, about.
   Used in addition to site.css. */

.legal-page {
  padding: 48px 0 80px;
}

.legal-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.page-header { margin-bottom: 48px; }

.page-header h1 {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

.section { margin-bottom: 48px; }

.section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}

.section p {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 12px;
  line-height: 1.75;
}

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

.section ul, .section ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.section li {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 6px;
  line-height: 1.7;
}

.section li strong { color: var(--ink); }

.section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.highlight-box {
  background: var(--accent-soft);
  border: 1px solid rgba(35, 104, 70, 0.16);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 6px 0 18px;
}

.highlight-box p {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0;
}

.table-wrap {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 14px 0 18px;
}

@media (prefers-color-scheme: dark) {
  .table-wrap { background: rgba(255, 255, 255, 0.02); }
}

:root[data-theme="dark"] .table-wrap {
  background: rgba(255, 255, 255, 0.02);
}

:root[data-theme="light"] .table-wrap {
  background: rgba(255, 255, 255, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
  vertical-align: top;
}

td:first-child {
  color: var(--ink);
  font-weight: 500;
}

tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .legal-page { padding: 28px 0 56px; }
  .legal-card { border-radius: 24px; }
  .content { padding: 34px 20px 56px; }
  .page-header h1 { font-size: 30px; }
  .section h2 { font-size: 19px; }
  td, th { padding: 8px 10px; }
  .footer-inner { padding-top: 14px; }
}
