@media (max-width: 1024px) {
    .device-hero-grid,
    .device-spec-grid {
        grid-template-columns: 1fr;
    }

    .device-feature-grid,
    .device-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .device-hero,
    .device-section {
        padding: 64px 0;
    }

    .device-feature-grid,
    .device-gallery {
        grid-template-columns: 1fr;
    }

    .device-visual {
        min-height: 300px;
        padding: 24px;
    }

    .device-cta-box {
        padding: 32px;
    }
}

.carbon-page {
    min-height: 60vh;
}

.legal-hero,
.contact-hero {
    padding: 140px 0 90px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(58, 122, 254, 0.15) 0%, transparent 60%);
    position: relative;
}

.legal-hero h1,
.contact-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-hero p,
.contact-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.legal-content-section,
.contact-section {
    padding: 0 0 120px;
}

.legal-card {
    max-width: 940px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(31, 35, 42, 0.76);
}

.legal-card h2,
.legal-card h3 {
    margin: 26px 0 12px;
}

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

.legal-card p,
.legal-card li {
    color: var(--text-body);
}

.legal-card ul,
.legal-card ol {
    margin: 14px 0 18px 22px;
}

.legal-card a:not(.btn) {
    color: var(--accent-primary);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: rgba(31, 35, 42, 0.72);
    text-align: center;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(31, 35, 42, 0.88);
}

.contact-icon-box {
    display: flex;
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-heading);
    font-size: 36px;
}

.whatsapp-card .contact-icon-box {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.email-card .contact-icon-box {
    background: rgba(58, 122, 254, 0.1);
    color: var(--accent-primary);
}

.contact-card h3 {
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.contact-card p {
    margin-bottom: 32px;
    color: var(--text-muted);
}

.btn-whatsapp,
.btn-email {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    color: #fff;
    font-weight: 600;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-email {
    background: var(--accent-primary);
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-email:hover {
    background: var(--accent-primary-dark);
}

@media (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .legal-card {
        padding: 30px 22px;
    }
}
