/* =========================================================
   Shared consent banner + legal-page layout utilities
   Include on every page that displays the cookie/legal banner:
     index.html, cookie-policy.html, privacy-policy.html,
     terms-of-use.html, ccpa-opt-out.html
   ========================================================= */

/* --- GDPR / CCPA consent banner --- */
.consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: #111214;
    color: #f4f4f6;
    border-top: 1px solid #2a2c31;
    padding: 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: none;
}

.consent-banner--visible {
    display: block;
}

.consent-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.consent-text-block { flex: 1 1 320px; }

.consent-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.consent-body {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b2b8;
}

.consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.consent-banner button,
.consent-accept,
.consent-reject,
.consent-customize {
    border: none;
    padding: 9px 16px;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

.consent-accept { background: #00e5ff; color: #000; }
.consent-reject { background: transparent; color: #f4f4f6; border: 1px solid #555; }
.consent-customize {
    background: transparent;
    color: #b0b2b8;
    text-decoration: underline;
    padding: 9px 12px;
}

.consent-details {
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #2a2c31;
    display: none;
}

.consent-show-details .consent-details { display: block; }

.consent-category {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.consent-category input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.consent-category label { font-size: 14px; color: #fff; cursor: pointer; line-height: 1.4; }
.consent-category small { display: block; color: #8b8d93; font-size: 12px; font-weight: normal; }

.consent-links {
    font-size: 12px;
    color: #8b8d93;
    margin-top: 10px;
    width: 100%;
}

.consent-links a { color: #00e5ff; text-decoration: none; }

@media (max-width: 720px) {
    .consent-content { flex-direction: column; align-items: stretch; }
    .consent-actions { justify-content: flex-start; }
}

/* --- Legal / policy page layout utilities --- */
.content-section {
    padding: 100px 0 80px;
    background-color: var(--bg);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p {
    font-size: 15px;
    color: var(--text-secondary);
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.policy-container,
.terms-container {
    max-width: 820px;
    margin: 0 auto;
}

.policy-body,
.terms-body {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}
.policy-body h2,
.terms-body h2 {
    font-size: 20px;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.policy-body h2:first-child,
.terms-body h2:first-child { margin-top: 0; }
.policy-body p,
.policy-body li,
.terms-body p,
.terms-body li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.policy-body ul,
.terms-body ul {
    padding-left: 22px;
    margin-bottom: 16px;
}
.policy-body li,
.terms-body li { margin-bottom: 8px; }
.policy-body strong,
.terms-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-box {
    background: rgba(0,0,0,0.03);
    border-left: 4px solid var(--text-primary);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 24px;
}
.contact-box p {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.cookie-table th,
.cookie-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.cookie-table th { background: rgba(0,0,0,0.04); font-weight: 600; }

/* --- Pricing / form consent checkbox --- */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-slate);
    cursor: pointer;
}

.consent-checkbox a {
    color: var(--accent-slate);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.consent-checkbox a:hover {
    color: #1a252f;
}

@media (max-width: 720px) {
    .consent-content { flex-direction: column; align-items: stretch; gap: 12px; }
    .consent-text-block { flex: none; }
    .consent-actions { justify-content: flex-start; }
}

/* Optional: full-width primary buttons on very narrow phones */
@media (max-width: 480px) {
    .consent-accept,
    .consent-reject { width: 100%; }
}

