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

:root {
    --primary: #5bb5a6;
    --primary-dark: #4aa396;
    --text: #1f2937;
    --muted: #64748b;
    --border: #dbe7e4;
    --surface: #ffffff;
    --background: #f4fbf8;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
    display: flex;
    flex-direction: column;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-symbol {
    width: 32px;
    height: 32px;
}

.logo-text {
    height: 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.nav a:hover {
    color: var(--primary-dark);
}

.page-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.eyebrow {
    display: none;
}

h1 {
    max-width: 720px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.content {
    max-width: 720px;
    display: grid;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.62;
}

.legal-body h2 {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-top: 1.4rem;
}

.legal-body h3 {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
    margin-top: 1.1rem;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
    margin: 0;
}

.legal-body ul,
.legal-body ol {
    padding-left: 1.4rem;
}

.legal-body a {
    color: var(--primary-dark);
    font-weight: 700;
}

.legal-body strong {
    color: #334155;
}

.footer {
    border-top: 0;
    background: linear-gradient(135deg, #f0faf8 0%, #dcfce7 100%);
    padding: 3rem 2rem 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer a,
.footer p {
    color: var(--text);
    font-size: 1rem;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-dark);
}

.contact-page {
    background: linear-gradient(135deg, #f0faf8 0%, #dcfce7 100%);
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.back-link:hover {
    background: rgba(91, 181, 166, 0.12);
    transform: translateX(-2px);
}

.back-link svg {
    width: 24px;
    height: 24px;
}

.contact-main {
    flex: 1;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-card {
    width: 100%;
    max-width: 1100px;
    padding: 3rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-card h1 {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.contact-card .subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-card .intro {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #f0faf8 0%, #dcfce7 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-card-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-card h2 {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
}

.info-card p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.info-card a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-symbol {
    width: 30px;
    height: 30px;
}

.footer-logo .logo-text {
    height: 30px;
    padding-left: 10px;
}

.footer-copy {
    color: #6b7280;
    font-size: 0.875rem;
}

body.is-authenticated .footer {
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 0.9rem 2rem;
}

body.is-authenticated .footer-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

body.is-authenticated .footer-logo,
body.is-authenticated .footer-public-link {
    display: none;
}

body.is-authenticated .footer-links {
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 0;
}

body.is-authenticated .footer a,
body.is-authenticated .footer-copy {
    color: #667085;
    font-size: 0.8125rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.is-authenticated .footer {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-inner {
        padding: 2.25rem 1.25rem 3rem;
    }

    h1 {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
    }

    .content {
        font-size: 0.95rem;
    }

    .header {
        padding: 1rem;
    }

    .contact-main {
        padding: 2rem 1rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .contact-card h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}
