/**
 * Maxtel Legal — Shared styles for GDPR & Cookie/Privacy pages
 */

/* === Container === */
.maxtel-legal {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.maxtel-legal__container {
    width: 100%;
}

/* === Version badge === */
.maxtel-legal__version {
    font-size: 0.78rem;
    color: var(--color-slate-400, #7D8386);
    text-align: right;
    margin-bottom: 1.5rem;
}

/* === Table of Contents === */
.maxtel-legal__toc {
    background: var(--color-white, #fff);
    border-radius: 16px;
    border: 1px solid var(--color-slate-100, #EEF3F3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.maxtel-legal__toc-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-slate-500, #677785);
    margin: 0 0 0.75rem;
}

.maxtel-legal__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maxtel-legal__toc-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-primary, #69C6AE);
    text-decoration: none;
    transition: color 0.2s ease;
}

.maxtel-legal__toc-list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary, #69C6AE);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.4;
}

.maxtel-legal__toc-list li a:hover {
    color: var(--color-primary-hover, #55B89C);
}

.maxtel-legal__toc-list li a:hover::before {
    opacity: 1;
}

/* === Sections === */
.maxtel-legal__section {
    background: var(--color-white, #fff);
    border-radius: 20px;
    border: 1px solid var(--color-slate-100, #EEF3F3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: 100px;
}

.maxtel-legal__section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-slate-800, #1E293B);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-teal-100, #D4F0E8);
}

.maxtel-legal__section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-800, #1E293B);
    margin: 1.5rem 0 0.75rem;
}

.maxtel-legal__section p {
    font-size: 0.9rem;
    color: var(--color-slate-600, #54606B);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.maxtel-legal__section p:last-child {
    margin-bottom: 0;
}

.maxtel-legal__section a {
    color: var(--color-primary, #69C6AE);
    text-decoration: none;
    font-weight: 600;
}

.maxtel-legal__section a:hover {
    text-decoration: underline;
}

.maxtel-legal__section strong {
    color: var(--color-slate-800, #1E293B);
}

.maxtel-legal__section em {
    color: var(--color-slate-500, #677785);
}

/* === Lists === */
.maxtel-legal__section ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0 1rem;
}

.maxtel-legal__section ul li {
    font-size: 0.9rem;
    color: var(--color-slate-600, #54606B);
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.maxtel-legal__section ul li::marker {
    color: var(--color-primary, #69C6AE);
}

/* === Tables === */
.maxtel-legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.85rem;
}

.maxtel-legal__table th,
.maxtel-legal__table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-slate-100, #EEF3F3);
    color: var(--color-slate-600, #54606B);
    line-height: 1.5;
}

.maxtel-legal__table th {
    font-weight: 700;
    color: var(--color-slate-800, #1E293B);
    background: var(--color-slate-50, #F4FAF9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.maxtel-legal__table tr:last-child td {
    border-bottom: none;
}

/* === Documentation Grid === */
.maxtel-legal__docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.maxtel-legal__doc-card {
    text-align: center;
    padding: 1rem;
    background: var(--color-slate-50, #F4FAF9);
    border-radius: 12px;
    border: 1px solid var(--color-slate-100, #EEF3F3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maxtel-legal__doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.maxtel-legal__doc-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.maxtel-legal__doc-card a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary, #69C6AE);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.maxtel-legal__doc-card a:hover {
    text-decoration: underline;
}

/* === Contact box === */
.maxtel-legal__contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-teal-50, #F0FAF7);
    border-radius: 12px;
    border: 1px solid var(--color-teal-100, #D4F0E8);
    margin-top: 1rem;
}

.maxtel-legal__contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-white, #fff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #69C6AE);
    flex-shrink: 0;
}

.maxtel-legal__contact p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-slate-700, #334155);
}

/* === Responsive === */
@media (max-width: 768px) {
    .maxtel-legal {
        padding: 2rem 1rem 3rem;
    }

    .maxtel-legal__section {
        padding: 1.5rem 1.25rem;
    }

    .maxtel-legal__docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .maxtel-legal__table {
        font-size: 0.78rem;
    }

    .maxtel-legal__table th,
    .maxtel-legal__table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .maxtel-legal__docs-grid {
        grid-template-columns: 1fr;
    }
}
