/* ===================================
   LEGAL / CONTENT PAGES
   Privacy, Terms, Cookies, Methodology
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.8;
}

.header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover { color: var(--accent-dark); }

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-primary);
}

h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p { margin-bottom: 1rem; }

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

.highlight-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: var(--accent-primary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Cookie page specific */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

th {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-weight: 600;
}

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

.cookie-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-essential { background: #166534; color: #fff; }
.cookie-functional { background: #1d4ed8; color: #fff; }
.cookie-analytics { background: #7c3aed; color: #fff; }

/* Methodology page specific */
.principle-card {
    background: var(--bg-secondary);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.principle-card h4 {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rating-scale {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.rating-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.rating-stars {
    flex-shrink: 0;
    font-size: 1.5rem;
    min-width: 100px;
}

.rating-meaning h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rating-meaning p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid #3a3a3a;
    margin-top: 3rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .container { padding: 2rem 1rem; }
    table { font-size: 0.875rem; }
    th, td { padding: 0.75rem; }
    .rating-item { flex-direction: column; }
    .rating-stars { min-width: auto; }
}

/* ===================================
   REDUCED MOTION - LEGAL PAGES
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .back-link {
        transition: none;
    }
}
