/*
 * 概要: 利用規約・プライバシーポリシー用の共通スタイル（LP index.html とトーンを揃える）
 * 主な仕様: CSS 変数・M PLUS Rounded 1c・クリーム背景＋淡いグラデーション・カード型本文
 * 制限事項: index.html 内の変数定義と重複するが、単体ページでも見た目が崩れないよう self-contained とする
 */

:root {
  --mint: #5fd4c0;
  --mint-dark: #3db9a3;
  --mint-soft: #c8f5ec;
  --lavender: #e8e6ff;
  --lavender-deep: #d4d0ff;
  --ink: #1a1c32;
  --ink-muted: #5c5f7a;
  --surface: #ffffff;
  --cream: #fffaf5;
  --shadow-soft: 0 24px 60px rgba(26, 28, 50, 0.08);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* LP と同じページ背景（ヒーロー周りのグラデーションを弱く全体に） */
body.legal-page {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--lavender) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 60%, var(--mint-soft) 0%, transparent 45%),
    var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 固定ナビ（index.html の .site-nav と同等） --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 245, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 28, 50, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(26, 28, 50, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:not(.btn-nav) {
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-links a:not(.btn-nav):hover {
  color: var(--ink);
}

.btn-nav {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 20px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 28, 50, 0.2);
}

@media (max-width: 720px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }
}

/* --- メイン: カード内に条文 --- */
.legal-main {
  padding-top: calc(76px + env(safe-area-inset-top, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(26, 28, 50, 0.06);
  overflow: hidden;
}

/* 見出し帯: 紫グラデ廃止し LP のラベンダー系に */
.legal-card-header {
  padding: 40px 28px 28px;
  text-align: center;
  background: linear-gradient(180deg, var(--lavender) 0%, rgba(255, 255, 255, 0) 85%);
  border-bottom: 1px solid rgba(26, 28, 50, 0.06);
}

.legal-card-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 4px;
}

/* トップへ戻る */
.legal-back {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-card-body {
  padding: 40px 36px 48px;
}

/* 冒頭の説明ブロック */
.legal-intro {
  margin-bottom: 36px;
  padding: 20px 22px;
  background: rgba(232, 230, 255, 0.45);
  border-radius: 16px;
  border-left: 4px solid var(--mint-dark);
}

.legal-intro p {
  font-size: 0.98rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* 各セクション */
.legal-section {
  margin-bottom: 36px;
}

.legal-section:last-of-type {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--mint-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(61, 185, 163, 0.25);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 12px;
}

.legal-section p {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}

.legal-section ul {
  margin-left: 1.35em;
  margin-bottom: 14px;
}

.legal-section li {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 500;
}

/* 条文内の内部リンク（利用規約からプラポリへ等） */
.legal-section a {
  color: var(--mint-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--ink);
}

/* 制定日・末尾メタ */
.legal-meta {
  text-align: right;
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 28, 50, 0.08);
}

.legal-meta p + p {
  margin-top: 6px;
}

/* --- フッター（index.html の .site-footer と同等） --- */
.site-footer {
  padding: 48px 24px 32px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid rgba(26, 28, 50, 0.06);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-mail {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.footer-mail a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

@media (max-width: 600px) {
  .legal-card-body {
    padding: 28px 18px 36px;
  }

  .legal-card-header {
    padding: 32px 18px 22px;
  }

  .legal-intro {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px max(14px, env(safe-area-inset-left, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }
}
