:root {
    --bg: #f8f9fb;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --accent: #0f172a;
    --accent-green: #10b981;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.navbar {
    background: rgba(248, 249, 251, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand,
.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text) !important;
    background: var(--border-light);
}

.btn-primary-dark {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary-dark:hover {
    background: #1e293b;
    color: white;
    transform: translateY(-1px);
}

.legal-hero {
    position: relative;
    padding: 150px 0 56px;
    overflow: hidden;
}

.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero .container { position: relative; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
}

.legal-hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
}

.legal-hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0;
}

.legal-shell {
    padding: 24px 0 100px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}

.legal-note {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.legal-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 2.25rem 0 0.75rem;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    font-size: 1rem;
}

.legal-card ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-card li { margin-bottom: 0.5rem; }

.legal-card strong { color: var(--text); }

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2.5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.resource-item {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
}

.resource-item h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.resource-item p {
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field label {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 0.85rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.alert-box {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-box.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.alert-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

footer {
    background: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .legal-hero { padding-top: 125px; }
    .legal-hero h1 { letter-spacing: -1px; }
    .resource-grid,
    .form-grid { grid-template-columns: 1fr; }
}
