/* legal.css — Shared styles for legal pages (privacy, terms) */

:root {
  --bg: #FFF9F5;
  --text: #3D2C2C;
  --text-secondary: #8A7070;
  --text-muted: #B8A4A4;
  --accent: #E8789A;
  --accent-light: #F4A6BA;
  --border: #F0E0D8;
  --white: #FFFFFF;
  --max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Header */
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-header .meta {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-header .meta a {
  color: var(--accent);
  text-decoration: none;
}

/* Navigation breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Table of Contents */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 6px;
}

.toc ol li a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.15s;
}

.toc ol li a::before {
  content: counter(toc-counter) ".";
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
}

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

/* Sections */
section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 8px;
}

section h2 .section-num {
  color: var(--accent);
  margin-right: 6px;
}

section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

section p {
  margin-bottom: 12px;
  color: var(--text);
}

section ul,
section ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

section li {
  margin-bottom: 6px;
}

/* Info box */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
}

/* Footer */
.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

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

.legal-footer a:hover {
  text-decoration: underline;
}

/* Links */
a {
  color: var(--accent);
}

/* Back to top */
.back-to-top {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 32px 16px 60px;
  }

  .legal-header h1 {
    font-size: 24px;
  }

  section h2 {
    font-size: 18px;
  }

  .toc {
    padding: 20px;
  }
}
