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

:root {
    --primary: #0a1628;
    --primary-light: #162240;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, .25);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --surface: #0f1d35;
    --border: #1e3a5f;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navbar ─── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--text);
    text-decoration: none;
}

.nav-logo::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Hero ─── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(59, 130, 246, .08), transparent),
        radial-gradient(ellipse 40% 40% at 20% 60%, rgba(59, 130, 246, .06), transparent);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(.9rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-subtitle .sep {
    color: var(--accent);
    margin: 0 8px;
}

.hero-tagline {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    z-index: 1;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .4; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Sections ─── */

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(59, 130, 246, .12);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ─── About ─── */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

.about-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.about-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.7;
}

/* ─── Services ─── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(59, 130, 246, .06);
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
    user-select: none;
}

.service-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.service-code {
    display: inline-block;
    background: rgba(59, 130, 246, .1);
    color: var(--accent);
    padding: 2px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
}

/* ─── Contact ─── */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.7;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--primary);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
}

/* ─── Toast ─── */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    transform: translateY(120%);
    opacity: 0;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 9999;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #065f46;
    border: 1px solid #059669;
}

.toast.error {
    background: #7f1d1d;
    border: 1px solid #dc2626;
}

/* ─── Footer ─── */

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.footer-brand p,
.footer-links p {
    color: var(--text-muted);
    font-size: .82rem;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--primary-light);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, .3);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
    }

    .hero {
        min-height: 90vh;
    }

    .section {
        padding: 64px 0;
    }

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

    .contact-form {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGE — Privacy, Terms & GDPR
   ═══════════════════════════════════════════════════════════════ */

.legal-page {
    background: var(--primary);
}

/* ─── Legal hero ─── */

.legal-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    text-align: center;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-glow), transparent),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(59, 130, 246, .06), transparent);
    z-index: 0;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
}

.legal-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ─── Legal section ─── */

.legal-section {
    padding: 0 0 100px;
}

/* ─── Tabs ─── */

.legal-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.legal-tab:hover {
    color: var(--text);
    background: rgba(59, 130, 246, .06);
}

.legal-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ─── Panels ─── */

.legal-panel {
    display: none;
    animation: legalFadeIn .4s ease;
}

.legal-panel.active {
    display: block;
}

@keyframes legalFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    font-size: .82rem;
    color: var(--text-muted);
}

.legal-meta span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 50px;
}

.legal-panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.legal-panel h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--accent);
}

.legal-panel p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.legal-panel ul li {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.8;
    padding: 4px 0 4px 24px;
    position: relative;
}

.legal-panel ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .6;
}

.legal-panel a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.legal-panel a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ─── GDPR summary ─── */

.gdpr-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.gdpr-summary-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color var(--transition);
}

.gdpr-summary-item:hover {
    border-color: var(--accent);
}

.gdpr-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.gdpr-summary-item span:last-child {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
}

/* ─── Footer legal links ─── */

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .82rem;
    transition: color var(--transition);
}

.footer-legal-link:hover {
    color: var(--accent);
}

.footer-sep {
    color: var(--border);
    font-size: .75rem;
}

/* ─── Legal page responsive ─── */

@media (max-width: 768px) {
    .legal-hero {
        padding: 110px 0 60px;
    }

    .legal-tabs {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }

    .legal-tab {
        text-align: center;
    }

    .legal-meta {
        flex-direction: column;
        gap: 8px;
    }

    .gdpr-summary {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }
}
