/* ============================================
   CardITvisio Legal Pages - Shared Styles
   Matches cosmic dark theme branding
   ============================================ */

:root {
    --legal-primary: #ff6b35;
    --legal-primary-hover: #e55a2b;
    --legal-bg: #0a0a1a;
    --legal-surface: rgba(20, 25, 40, 0.85);
    --legal-text: #ffffff;
    --legal-text-secondary: rgba(255, 255, 255, 0.7);
    --legal-text-muted: rgba(255, 255, 255, 0.5);
    --legal-border: rgba(255, 255, 255, 0.15);
    --legal-link: #ff6b35;
    --legal-link-hover: #ffb399;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: url('../background.png') no-repeat center center fixed;
    background-size: cover;
    background-color: var(--legal-bg);
    color: var(--legal-text);
    line-height: 1.7;
    min-height: 100vh;
}

/* Header */
.legal-header {
    background: var(--legal-surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--legal-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.legal-header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--legal-text);
}

.legal-logo img {
    height: 40px;
}

.legal-logo span {
    font-weight: 600;
    font-size: 1.1rem;
}

.legal-back-link {
    color: var(--legal-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.legal-back-link:hover {
    color: var(--legal-primary);
}

.legal-back-link svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.legal-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-content {
    background: var(--legal-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--legal-border);
    border-radius: 12px;
    padding: 48px;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
    }
}

/* Typography */
.legal-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--legal-text);
}

.legal-subtitle {
    font-size: 1rem;
    color: var(--legal-text-muted);
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--legal-text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--legal-border);
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--legal-text);
}

.legal-section p {
    margin-bottom: 16px;
    color: var(--legal-text-secondary);
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--legal-text-secondary);
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--legal-link);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--legal-link-hover);
    text-decoration: underline;
}

/* Highlight box for important sections */
.legal-highlight {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
}

.legal-highlight h3 {
    color: var(--legal-primary);
    margin-top: 0;
}

/* CCPA specific styling */
.ccpa-section {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.ccpa-section h2 {
    color: #60a5fa;
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

/* Table styles */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.legal-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--legal-text);
}

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

/* Footer */
.legal-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
    color: var(--legal-text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--legal-border);
}

.legal-footer a {
    color: var(--legal-link);
    text-decoration: none;
}

.legal-footer a:hover {
    text-decoration: underline;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .legal-header {
        position: static;
        background: white;
        border-bottom: 1px solid #ccc;
    }

    .legal-content {
        background: white;
        border: none;
        box-shadow: none;
    }

    .legal-section p,
    .legal-section li,
    .legal-table td {
        color: #333;
    }

    .legal-section a {
        color: #0066cc;
    }

    .legal-back-link {
        display: none;
    }
}

/* Anchor offset for sticky header */
.legal-section[id] {
    scroll-margin-top: 100px;
}

/* Cookie consent placeholder - overridden by cookie-consent.js */
.cookie-banner {
    display: none;
}
