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

body {
    font-family: 'Inter', sans-serif;
    background: var(--c-bg, #ffffff);
    color: var(--c-text, #111111);
    min-height: 100vh;
    padding: 72px 24px 96px;
}

.legal-container {
    max-width: 640px;
    margin: 0 auto;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.legal-container > .mio-back-link {
    margin-bottom: 56px;
}

/* Header */
.legal-meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 16px;
}

.legal-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #111111;
    margin-bottom: 8px;
}

.legal-date {
    font-size: 12px;
    color: #bbbbbb;
    margin-bottom: 48px;
}

.legal-divider {
    width: 32px;
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 48px;
}

/* Content */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 14px;
}

.legal-section p {
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 12px;
}

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

.legal-section ul {
    list-style: none;
    padding: 0;
}

.legal-section ul li {
    font-size: 14px;
    color: #444444;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.legal-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #cccccc;
}

/* Links inside content */
.legal-section a {
    color: var(--c-text, #111111);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #cccccc;
    transition: text-decoration-color 0.18s ease, color 0.18s ease;
}
.legal-section a:hover {
    text-decoration-color: var(--c-text, #111111);
}

/* h3 subheadings */
.legal-section h3 {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 10px;
    margin-top: 24px;
}
.legal-section h3:first-child {
    margin-top: 0;
}

/* code inline */
.legal-section code {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 12px;
    background: var(--c-bg-soft, #f7f7f7);
    border: 1px solid var(--c-border-soft, #ebebeb);
    border-radius: 4px;
    padding: 1px 6px;
    color: #555555;
}

/* Footer */
.legal-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #cccccc;
    letter-spacing: 0.03em;
}

.legal-footer p {
    margin-top: 8px;
    font-size: 11px;
    color: #cccccc;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    align-items: center;
}

.legal-footer a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s ease;
}
.legal-footer a:hover {
    color: #555555;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Mobile adaptive ===== */
@media (max-width: 720px) {
    body { padding: 40px 18px 64px; }
    .legal-container > .mio-back-link { margin-bottom: 36px; }
    .legal-title { font-size: 26px; }
    .legal-date { margin-bottom: 32px; }
    .legal-divider { margin-bottom: 32px; }
    .legal-section { margin-bottom: 32px; }
    .legal-section p, .legal-section ul li { font-size: 13.5px; line-height: 1.75; }
    .legal-footer { margin-top: 40px; }
}

@media (max-width: 380px) {
    body { padding: 32px 14px 48px; }
    .legal-title { font-size: 22px; }
}
