/* ==========================================================
   Schoole Inc. — Legal pages (privacy / terms)
   index.html と同じトークンを使う。assets/styles.css の後に読む。
   ========================================================== */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.legal-header .header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header .brand-logo { height: 40px; width: auto; }

.legal-header a.back {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--paper);
  opacity: 0.78;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.legal-header a.back:hover { opacity: 1; }

.legal-header .header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.legal-header .lang {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.85;
  padding-right: 22px;
  border-right: 1px solid var(--line-light);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.legal-header .lang:hover { opacity: 1; }

@media (max-width: 480px) {
  .legal-header .header-right { gap: 14px; }
  .legal-header .lang { padding-right: 14px; font-size: 11px; }
  .legal-header a.back { font-size: 11px; }
}

.legal-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 24px 80px;
}

.legal-hero .inner { max-width: 1120px; margin: 0 auto; }

.legal-hero .en-label {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.legal-hero .meta {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(246, 244, 239, 0.62);
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal-body .intro {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-soft);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-body section { padding-top: 44px; }

.legal-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal-body h2 .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  flex: none;
}

.legal-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 30px 0 12px;
}

.legal-body p {
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 18px;
}

.legal-body ul,
.legal-body ol { margin: 0 0 18px; padding-left: 0; }

.legal-body li {
  position: relative;
  font-size: 15px;
  line-height: 2.05;
  color: var(--text);
  padding-left: 20px;
  margin-bottom: 8px;
  list-style: none;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 1px;
  background: var(--gold-deep);
}

.legal-body ol { counter-reset: legal-ol; }
.legal-body ol > li { counter-increment: legal-ol; padding-left: 28px; }
.legal-body ol > li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold-deep);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  line-height: 1.95;
}

.legal-table th {
  width: 34%;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-2);
  white-space: nowrap;
}

.legal-table-wrap { overflow-x: auto; margin-bottom: 18px; }

.legal-contact {
  margin-top: 8px;
  padding: 28px 30px;
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
}

.legal-contact p { margin-bottom: 6px; font-size: 14.5px; line-height: 2; }
.legal-contact p:last-child { margin-bottom: 0; }

.legal-body a.inline {
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(196, 154, 31, 0.4);
  word-break: break-all;
}
.legal-body a.inline:hover { border-bottom-color: var(--gold-deep); }

.legal-foot {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: rgba(246, 244, 239, 0.66);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .legal-hero { padding: 52px 20px 58px; }
  .legal-body { padding: 52px 20px 72px; }
  .legal-table th { width: auto; white-space: normal; }
  .legal-table th,
  .legal-table td { display: block; border-bottom: none; padding: 10px 14px; }
  .legal-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .legal-contact { padding: 22px 20px; }
}
