/* ===== Legal Pages — Shared Styles ===== */

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

:root {
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --border: #d2d2d7;
  --bg: #ffffff;
  --bg-section: #f5f5f7;
  --bg-subtle: #f5f5f7;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               sans-serif;
  line-height: 1.75;
  font-size: 1rem;
}

/* ── Layout ── */
.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ── Page header ── */
.page-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.page-header .label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               sans-serif;
  margin-bottom: 12px;
}

.page-header .meta,
.page-header .effective-date {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.page-header .service-name {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.page-header .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ── Sections ── */
.section {
  margin-bottom: 52px;
}

.section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               sans-serif;
}

.section p {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.8;
}

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

/* Article sections (terms) */
.article {
  margin-bottom: 48px;
}

.article h2 {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial,
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.article p {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.8;
}

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

.article ol,
.article ul {
  margin: 12px 0 12px 1.5em;
}

.article li {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.article li:last-child {
  margin-bottom: 0;
}

/* ── Info cards (data lists) ── */
.info-list {
  background: var(--bg-section);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 20px;
}

.info-list dl {
  display: grid;
  gap: 0;
}

.info-list .item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.info-list .item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list .item:first-child {
  padding-top: 0;
}

.info-list dt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: 1px;
}

.info-list dd {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.65;
}

/* ── Definition list (terms) ── */
.definition-list {
  margin: 12px 0;
}

.definition-list dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 4px;
}

.definition-list dd {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-left: 1.5em;
}

/* ── Info table (tokushoho) ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table tr:first-child {
  border-top: 1px solid var(--border);
}

.info-table th {
  width: 36%;
  padding: 16px 0;
  padding-right: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}

.info-table td {
  padding: 16px 0;
  font-size: 15px;
  color: var(--text-primary);
  vertical-align: top;
  line-height: 1.65;
}

.info-table td a {
  color: var(--accent);
  text-decoration: none;
}

.info-table td a:hover {
  text-decoration: underline;
}

.placeholder {
  color: var(--text-tertiary);
  font-style: normal;
}

.tag-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #e8f1fb;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ── Section title (tokushoho) ── */
.section-title {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* ── Simple bulleted list ── */
.prose-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.prose-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-primary);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.prose-list li:last-child {
  margin-bottom: 0;
}

/* ── Notice box ── */
.notice {
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.notice-box {
  background-color: var(--bg-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
}

.notice-box p {
  font-size: 14px;
  color: #3a3a3c;
  margin-bottom: 8px;
}

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

/* ── Note block (tokushoho) ── */
.note-block {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

.note-block strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Contact box ── */
.contact-box {
  background: var(--bg-section);
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
}

.contact-box p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.contact-box .email {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}

/* ── Divider ── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0;
}

/* ── Enacted date ── */
.enacted {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 80px 20px 60px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .article h2 {
    font-size: 19px;
  }

  .info-list {
    padding: 20px;
  }

  .info-list .item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-list dt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
  }

  .info-table th {
    width: 40%;
    font-size: 13px;
    padding-right: 16px;
    white-space: normal;
  }

  .info-table td {
    font-size: 14px;
  }
}
