/* Sound Defender - shared site styles */
:root {
    --navy: #081a2b;
    --blue: #1578d3;
    --blue-dark: #0b4f96;
    --ink: #172331;
    --muted: #667789;
    --line: #dfe5ea;
    --white: #ffffff;
    --max-width: 1320px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--white);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.header-inner {
    width: min(100% - 24px, var(--max-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0 3px;
}

.brand-link {
    display: inline-flex;
    line-height: 0;
}

.logo {
    display: block;
    width: min(400px, 82vw);
    height: auto;
}

.site-main {
    width: min(100% - 20px, var(--max-width));
    margin: 0 auto;
    padding: 6px 0 14px;
    flex: 0 0 auto;
}

.page-intro {
    text-align: center;
    padding: 0 8px 7px;
}

.page-intro h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.2;
}

.page-intro p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.embed-section {
    width: 100%;
    margin: 0;
    background: var(--white);
    overflow: visible;
}

.embed-section iframe {
    display: block;
    width: 100%;
    height: 1200px;
    margin: 0;
    border: 0;
    background: var(--white);
}

.embed-fallback {
    margin: 7px 4px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.site-footer {
    background: var(--navy);
    color: #d9e4ef;
    flex: 0 0 auto;
}

.footer-inner {
    width: min(100% - 24px, var(--max-width));
    margin: 0 auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.page-content {
    width: min(100% - 24px, 920px);
    margin: 0 auto;
    padding: 28px 0 42px;
    flex: 1 0 auto;
}

.legal-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(22px, 4vw, 42px);
}

.legal-card h1 {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal-card h2 {
    margin: 28px 0 9px;
    color: var(--navy);
    font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
    line-height: 1.7;
}

.last-updated {
    color: var(--muted);
    margin-top: 0;
}

@media (max-width: 760px) {
    .header-inner {
        padding: 4px 0 2px;
    }

    .logo {
        width: min(350px, 88vw);
    }

    .site-main {
        width: min(100% - 10px, var(--max-width));
        padding: 5px 0 10px;
    }

    .page-intro {
        padding-bottom: 5px;
    }

    .page-intro p {
        font-size: 0.86rem;
    }

    .embed-section iframe {
        height: 1500px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .page-content {
        width: min(100% - 16px, 920px);
        padding: 20px 0 34px;
    }
}
