
:root {
  --bg: #FFE5D1;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #171923;
  --muted: #687083;
  --line: #e4e7ef;
  --accent: #8c6161;
  --accent-dark: #784F4F;
  --danger: #b42318;
  --max: 1080px;
  --radius: 20px;
  --shadow: 0 16px 50px rgba(24, 28, 45, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.legal-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.about-page {
  width: min(calc(100% - 32px), 1200px);
}

.about-page .page-grid {
  width: min(100%, 980px);
  display: block;
  padding-bottom: 72px;
}

.about-page .content {
  width: 100%;
  max-width: none;
}

.legal-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,252,.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 150px;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}

.legal-nav a:hover { color: var(--text); }

.hero {
  padding: 72px 0 44px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff1e0;
  color: var(--accent-dark);
  font-weight: 750;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 80px;
}

.toc {
  position: sticky;
  top: 105px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: .9rem;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: .86rem;
}

.content {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}

.content section + section {
  margin-top: 48px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  letter-spacing: -.025em;
  line-height: 1.25;
}

h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

p, li { color: #424958; }

ul, ol { padding-left: 1.25rem; }

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.callout strong { color: var(--text); }

.callout.warning {
  border-color: #f2c7c4;
  background: #fff7f6;
}

.meta {
  color: var(--muted);
  font-size: .88rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .93rem;
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 750;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 50px;
  color: var(--muted);
  font-size: .86rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.placeholder {
  color: var(--danger);
  font-weight: 750;
}

@media (max-width: 800px) {
  .privacy-page .page-grid {
    grid-template-columns: 1fr;
  }

  .privacy-page .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .privacy-page .data-table th,
  .privacy-page .data-table td {
    min-width: 140px;
    white-space: normal;
  }

  .page-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-nav { display: none; }
  .hero { padding-top: 48px; }
  .content { border-radius: 16px; }
}

@media print {
  .legal-header, .toc { display: none; }
  body { background: #fff; }
  .content { border: 0; box-shadow: none; padding: 0; }
}
