/* =============================================================
   Tomoshibi - legal.css (Privacy Policy & Terms of Service)
   Extends pages.css
   ============================================================= */

/* ===== Legal page body ===== */
.legal-body {
  padding-top: 80px;
  padding-bottom: 60px;
}

/* ===== Header ===== */
.legal-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}

.legal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--prose);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.legal-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-meta {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.legal-meta time {
  color: var(--text);
}

.legal-lang-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ===== Sections ===== */
.legal-section {
  padding: 0;
  margin-bottom: 20px;
}

/* h2: major sections (Privacy Policy / Terms of Use) */
h2.legal-section-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 400;
  color: var(--prose);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

/* h3: sub-sections */
h3.legal-section-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(215, 185, 145, 0.1);
}

/* ===== Section divider (between Privacy and Terms) ===== */
.legal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

/* ===== Prose ===== */
.legal-prose {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.legal-prose p {
  margin-bottom: 6px;
}

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

/* ===== Lists ===== */
.legal-prose ul {
  margin: 6px 0 8px;
  padding-left: 20px;
  list-style: none;
}

.legal-prose li {
  margin-bottom: 4px;
  line-height: 1.7;
  position: relative;
  padding-left: 4px;
}

.legal-prose ul li::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
}

/* ===== Emphasis ===== */
.legal-prose strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Contact block ===== */
.legal-contact {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(215, 185, 145, 0.04);
  border-left: 2px solid var(--accent-dim);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

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

/* ===== Cross-links ===== */
.legal-nav {
  display: flex;
  gap: 24px;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-nav a {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

/* ===== Nav ===== */
.page-nav {
  background: linear-gradient(to bottom, rgba(10,9,12,0.95) 40%, transparent);
  padding: 20px 32px;
}

.nav-flame {
  width: 20px;
  height: 20px;
  vertical-align: -3px;
  margin-right: 6px;
}

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 3px;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ===== Japanese typesetting ===== */
[lang="ja"] .legal-prose {
  font-feature-settings: "halt";
  text-wrap: pretty;
  word-break: auto-phrase;
  line-height: 1.8;
}

[lang="ja"] .legal-title {
  font-feature-settings: "palt";
}

[lang="ja"] h2.legal-section-title {
  font-feature-settings: "halt";
  letter-spacing: 0.05em;
}

[lang="ja"] h3.legal-section-title {
  font-feature-settings: "halt";
  letter-spacing: 0.05em;
}

[lang="ja"] .legal-intro {
  font-feature-settings: "halt";
  text-wrap: pretty;
  word-break: auto-phrase;
  line-height: 1.8;
}

/* ===== Language system ===== */
[lang="ja"] .en { display: none; }
[lang="en"] .ja { display: none; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .legal-header {
    padding: 40px 0 20px;
    margin-bottom: 24px;
  }

  .legal-section {
    margin-bottom: 16px;
  }

  .legal-divider {
    margin: 24px 0;
  }

  .legal-nav {
    flex-direction: column;
    gap: 12px;
  }

  .page-nav {
    padding: 16px 20px;
  }
}
