/* Legal pages + cookie notice — matches portfolio palette */

:root {
    --legal-bg: #0a192f;
    --legal-surface: #112240;
    --legal-text: #d7dff7;
    --legal-muted: #a8b2d1;
    --legal-accent: #64ffda;
    --legal-border: rgb(100 255 218 / 25%);
}

body.legal-page {
    margin: 0;
    min-height: 100vh;
    background: var(--legal-bg);
    color: var(--legal-text);
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
}

body.legal-page.ja {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}

.legal-wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.legal-wrap h1 {
    color: var(--legal-accent);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.5rem;
}

.legal-meta {
    color: var(--legal-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-wrap h2 {
    color: var(--legal-text);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.legal-wrap p,
.legal-wrap li {
    color: var(--legal-muted);
    font-size: 1.05rem;
}

.legal-wrap ul {
    padding-left: 1.25rem;
}

.legal-wrap a {
    color: var(--legal-accent);
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--legal-border);
}

.legal-nav a {
    text-decoration: none;
    font-size: 0.95rem;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    text-decoration: underline;
}

.legal-nav a:focus-visible {
    outline: 2px solid var(--legal-accent);
    outline-offset: 3px;
}

.legal-back {
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--legal-accent);
    text-decoration: none;
    font-weight: 600;
}

.legal-back:focus-visible {
    outline: 2px solid var(--legal-accent);
    outline-offset: 3px;
}

/* Site footer legal links */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.footer-legal a {
    color: #a8b2d1;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--legal-accent, #64ffda);
}

.footer-legal a:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-owner {
    margin: 0.5rem 0 0;
    color: #a8b2d1;
    font-size: 0.9rem;
}

/* Cookie notice banner */
.cookie-notice {
    position: fixed;
    z-index: 10050;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 36rem;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    background: #112240;
    border: 1px solid rgb(100 255 218 / 30%);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
    color: #d7dff7;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice p {
    margin: 0 0 0.85rem;
    color: #a8b2d1;
}

.cookie-notice a {
    color: #64ffda;
}

.cookie-notice a:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cookie-notice button {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
    border: 1px solid #64ffda;
    background: #64ffda;
    color: #0a192f;
}

.cookie-notice button.cookie-notice-secondary {
    background: transparent;
    color: #64ffda;
}

.cookie-notice button:focus-visible {
    outline: 2px solid #64ffda;
    outline-offset: 3px;
}

@media (width <= 480px) {
    .cookie-notice {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }
}
