:root {
    --ink: #203036;
    --ink-soft: #55676d;
    --muted: #75858a;
    --line: #dce5e8;
    --surface-soft: #f5f8f9;
    --brand: #285f6e;
    --brand-deep: #1e4c59;
    --max: 900px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
.legal-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}
.legal-header-inner,
.legal-footer-inner,
.legal-main {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}
.legal-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.legal-brand {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}
.legal-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { color: var(--brand); }
.legal-main { padding: 64px 0 84px; }
.legal-kicker { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.legal-main h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.3; letter-spacing: -.03em; }
.legal-lead { margin: 18px 0 0; color: var(--ink-soft); }
.legal-meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.legal-content { margin-top: 48px; }
.legal-section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.5; }
.legal-section h3 { margin: 24px 0 8px; font-size: 16px; }
.legal-section p { margin: 10px 0; }
.legal-section ol,
.legal-section ul { margin: 12px 0; padding-left: 1.6em; }
.legal-section li + li { margin-top: 8px; }
.legal-note {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid #c9dce0;
    border-radius: 12px;
    background: #f5fafb;
    color: #3e565e;
}
.legal-warning {
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid #e7c983;
    border-radius: 12px;
    background: #fff9e9;
    color: #66501c;
}
.legal-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.legal-table th,
.legal-table td { padding: 15px 16px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.legal-table th { width: 28%; background: var(--surface-soft); font-weight: 750; }
.legal-footer { border-top: 1px solid var(--line); background: var(--surface-soft); }
.legal-footer-inner { padding: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.legal-footer a { color: var(--ink-soft); text-decoration: none; }
@media (max-width: 700px) {
    .legal-header-inner { min-height: auto; padding-block: 18px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .legal-main { padding-top: 44px; }
    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td { display: block; width: 100%; }
    .legal-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
    .legal-table th,
    .legal-table td { border: 0; }
    .legal-table td { border-top: 1px solid var(--line); }
}
