/* ============================================================
   MAXAGENT — Legal Pages Stylesheet (Light Theme)
   ============================================================ */

/* ---------- Legal Hero ---------- */
.legal-hero {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.06), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(124,58,237,0.04), transparent 60%);
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.legal-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.legal-hero-content > p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ---------- Legal Content ---------- */
.legal-content {
    padding: 64px 0 100px;
    background: var(--color-bg);
}

.legal-body {
    max-width: 820px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.legal-section a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--purple);
    text-decoration: underline;
}

/* ---------- Legal Contact Block ---------- */
.legal-contact {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-top: 16px;
}

.legal-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-contact i {
    color: var(--blue);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Cookie Table ---------- */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table thead {
    background: var(--color-bg-alt);
}

.cookie-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border-2);
}

.cookie-table td {
    padding: 14px 18px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
    vertical-align: top;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.cookie-table td strong {
    color: var(--color-heading);
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--color-border-2);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
}

.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background: var(--amber-glow);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-top: 2px;
}

.cookie-banner-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 4px;
}

.cookie-banner-text p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--blue);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
    color: var(--purple);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-necessary {
    padding: 10px 20px;
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}

.btn-cookie-necessary:hover {
    color: var(--color-heading);
    border-color: var(--color-text-muted);
    background: var(--color-bg-alt);
}

.btn-cookie-accept {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}

.btn-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 48px;
    }

    .legal-content {
        padding: 48px 0 80px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie-necessary,
    .btn-cookie-accept {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
