/* ========================================
   LEGAL DOCUMENT STYLES
   ======================================== */
:root {
    --text-main: #1a202c;
    --text-sub: #4a5568;
    --text-muted: #718096;
    --bg-legal: #ffffff;
    --accent-blue: #3b55e6;
    --border-color: #e2e8f0;
    --container-max: 1140px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-legal);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.8;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.legal-container {
    max-width: var(--container-max);
    margin: 26px auto 80px;
    padding: 0 40px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 60px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent-blue);
    color: var(--text-main);
    width: fit-content;
}

p {
    margin: 0 0 16px;
}

/* Lists */
ul,
ol {
    margin: 0 0 24px 20px;
    padding: 0;
}

li {
    margin-bottom: 8px;
}

li ul,
li ol {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Definition Lists (for Privacy/Tokushoho) */
dl {
    margin: 32px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    background: #f8fafc;
}

dt {
    font-weight: 700;
    margin-top: 20px;
    color: var(--text-main);
}

dt:first-child {
    margin-top: 0;
}

dd {
    margin: 8px 0 0 0;
    color: var(--text-sub);
}

/* Utility */
a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Legal pages: show CTA button on mobile (overrides style.css which hides it for LP) */
@media (max-width: 900px) {
    .header__cta {
        display: inline-block;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .legal-container {
        margin: 40px auto;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    h2 {
        font-size: 1.15rem;
        margin-top: 36px;
    }

    dl {
        padding: 16px;
    }
}