/**
 * Privacy Policy Page CSS - Dark/Light Theme
 * Uses shared.css tokens, no local :root vars
 */

/* ===== PAGE CONTAINER ===== */
.tt-politica-page {
    background: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-primary);
    font-family: var(--tt-sans);
}

.tt-politica-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

/* ===== HEADER ===== */
.tt-politica-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.tt-politica-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50%;
    transition: background 0.2s;
}

[data-theme="dark"] .tt-politica-back:hover { background: rgba(255, 255, 255, 0.05); }
[data-theme="light"] .tt-politica-back:hover { background: rgba(0, 0, 0, 0.05); }

.tt-politica-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.tt-politica-header-spacer {
    width: 40px;
}

/* ===== CONTENT ===== */
.tt-politica-content {
    padding: 24px 16px;
}

.tt-politica-update {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== SECTIONS ===== */
.tt-politica-section {
    margin-bottom: 32px;
}

.tt-politica-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.tt-politica-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px 0;
}

.tt-politica-section p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tt-politica-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.tt-politica-section ul li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

.tt-politica-section ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.tt-politica-section a {
    color: var(--accent);
    text-decoration: none;
}

.tt-politica-section a:hover {
    text-decoration: underline;
}

/* ===== INFO CARDS ===== */
.tt-info-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.tt-info-card strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tt-info-card ul {
    margin-bottom: 0;
}

.tt-info-card--secondary {
    background: transparent;
    border: 1px solid var(--border-color);
}

.tt-info-card--secondary p {
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== TABLES ===== */
.tt-table-responsive {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tt-table th,
.tt-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tt-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.tt-table td {
    color: var(--text-secondary);
}

.tt-table tr:last-child td {
    border-bottom: none;
}

.tt-table code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* ===== RIGHTS LIST ===== */
.tt-rights-list li {
    padding-left: 0;
    margin-bottom: 12px;
}

.tt-rights-list li::before {
    display: none;
}

.tt-rights-list li strong {
    color: var(--accent);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.tt-politica-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .tt-politica-content {
        padding: 16px 12px;
    }

    .tt-politica-section h2 {
        font-size: 16px;
    }

    .tt-table th,
    .tt-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .tt-info-card {
        padding: 12px;
    }
}

/* ===== SCROLLBAR ===== */
.tt-politica-page::-webkit-scrollbar {
    width: 8px;
}

.tt-politica-page::-webkit-scrollbar-track {
    background: transparent;
}

.tt-politica-page::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.tt-politica-page::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
