/*
 * SilverThrive legal and contact-page styles
 * Version 3.0
 *
 * Load AFTER silverthrive-v3.0.css.
 */

:root {
    --legal-bg: #07111d;
    --legal-bg-2: #0b1d2f;
    --legal-panel: rgba(7, 18, 31, 0.88);
    --legal-panel-border: rgba(145, 197, 230, 0.22);
    --legal-text: #f4f8fb;
    --legal-muted: #b8c7d4;
    --legal-accent: #8fd0f5;
    --legal-accent-strong: #b8e5ff;
    --legal-max: 940px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--legal-text);
    line-height: 1.65;
    text-align: left;
    background:
        radial-gradient(circle at 15% 10%, rgba(82, 166, 215, 0.20), transparent 30rem),
        radial-gradient(circle at 85% 30%, rgba(75, 120, 180, 0.14), transparent 28rem),
        linear-gradient(150deg, var(--legal-bg-2), var(--legal-bg) 55%, #030911);
    background-attachment: fixed;
}

main {
    flex: 1;
    width: 100%;
    padding: 14px 20px 48px;
}

.legal-shell {
    width: min(var(--legal-max), 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    background: var(--legal-panel);
    border: 1px solid var(--legal-panel-border);
    border-radius: 20px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.legal-kicker {
    color: var(--legal-accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.legal-shell h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
}

.last-updated {
    max-width: none;
    margin: 0 0 30px;
    color: var(--legal-muted);
    font-size: 0.94rem;
}

.intro {
    max-width: none;
    font-size: 1.08rem;
    color: #e4edf4;
    margin: 0 0 32px;
}

.legal-shell h2 {
    margin: 34px 0 10px;
    padding-top: 4px;
    font-size: clamp(1.18rem, 3vw, 1.45rem);
    line-height: 1.3;
    color: var(--legal-accent-strong);
}

.legal-shell p {
    max-width: none;
    margin: 0 0 16px;
}

.legal-shell ul {
    margin: 8px 0 18px;
    padding-left: 1.35rem;
}

.legal-shell li {
    margin: 7px 0;
}

.legal-shell a {
    color: var(--legal-accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.legal-shell a:hover,
.legal-shell a:focus {
    color: #fff;
}

.important {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--legal-accent);
    background: rgba(100, 181, 226, 0.09);
    border-radius: 0 10px 10px 0;
}

.home-nav {
    display: flex;
    justify-content: center;
    margin: 34px 0 0;
}

.home-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--legal-text);
    text-decoration: none;
    font-weight: 700;
}

.home-button img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.home-button:hover img,
.home-button:focus img {
    transform: scale(1.06);
    filter: brightness(1.12);
}

/* ===== SilverThrive contact form ===== */

.contact-form {
    margin-top: 30px;
    text-align: left;
}

.contact-field {
    margin-bottom: 18px;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-weight: bold;
    font-size: 0.94rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(152, 192, 228, 0.30);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    line-height: 1.4;
}

.contact-field textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--st-link);
    box-shadow: 0 0 0 3px rgba(152, 192, 228, 0.15);
}

.contact-privacy-note {
    max-width: none;
    margin: 6px 0 20px;
    color: var(--st-text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.contact-submit {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid rgba(152, 192, 228, 0.40);
    border-radius: 999px;
    background: rgba(152, 192, 228, 0.18);
    color: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus {
    background: rgba(152, 192, 228, 0.28);
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-status {
    margin: 26px 0;
    padding: 18px 20px;
    border-radius: 12px;
    line-height: 1.5;
}

.contact-status.success {
    background: rgba(105, 185, 145, 0.12);
    border: 1px solid rgba(125, 215, 165, 0.35);
}

.contact-status.error {
    background: rgba(200, 120, 120, 0.12);
    border: 1px solid rgba(230, 145, 145, 0.35);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.contact-action-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(152, 192, 228, 0.32);
    background: rgba(152, 192, 228, 0.12);
    color: #eef6ff;
    font-weight: bold;
    text-decoration: none;
}

.contact-action-link:hover,
.contact-action-link:focus {
    background: rgba(152, 192, 228, 0.22);
    text-decoration: none;
}

@media (max-width: 640px) {
    main {
        padding: 8px 12px 30px;
    }

    .legal-shell {
        padding: 24px 19px 30px;
        border-radius: 14px;
    }

    .intro {
        font-size: 1rem;
    }

    .legal-shell h2 {
        margin-top: 28px;
    }

    .home-button img {
        width: 68px;
        height: 68px;
    }

    .contact-submit {
        width: 100%;
    }
}
