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

:root {
    --bg: #f4faf9;
    --surface: #ffffff;
    --text: #102233;
    --muted: #556274;
    --border: #dbe8e6;
    --brand: #0ea5a0;
    --brand-dark: #0b8f8b;
    --gradient: linear-gradient(135deg, #0ea5a0 0%, #10b981 100%);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(16, 34, 51, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

.container {
    width: min(920px, 92%);
    margin: 0 auto;
}

.legal-header {
    padding: 32px 0 20px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
}

.brand span {
    color: var(--brand);
}

.back-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--brand-dark);
}

.notice {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid #b6ebe7;
    border-radius: 12px;
    background: #ecfbf9;
    color: #0f5e5b;
    font-size: 14px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 16px 0 34px;
}

.legal-title {
    font-family: 'Outfit', sans-serif;
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.legal-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 16px;
}

.legal-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.legal-nav a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
    border-color: var(--brand);
    color: var(--brand);
    background: #ecfbf9;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    margin: 26px 0 10px;
    font-size: 24px;
}

.policy-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-list li {
    padding: 14px 0;
    border-top: 1px dashed var(--border);
}

.policy-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.policy-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.policy-list p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-box {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fafdfd;
}

.contact-box a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.contact-box a:hover {
    text-decoration: underline;
}

.legal-footer {
    padding: 6px 0 40px;
    text-align: center;
    color: #6b7788;
    font-size: 13px;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 22px 18px;
    }

    .section-title {
        font-size: 21px;
    }
}
