/* Privacy Policy Page Styles */

/* CSS Variables */
:root {
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --green-500: #22c55e;
    --green-600: #16a34a;
}

/* Page Header */
.page-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    font-family: 'Racing Sans One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3.5rem;
    }
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

.page-header-highlight {
    color: var(--amber-400);
}

.last-updated {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* UCI Stripe */
.uci-stripe {
    height: 10px;
    background: linear-gradient(90deg,
    #0033A0 0%, #0033A0 20%,
    #C8102E 20%, #C8102E 40%,
    #000000 40%, #000000 60%,
    #FFD100 60%, #FFD100 80%,
    #009639 80%, #009639 100%
    );
}

/* Navigation */
.terms-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 76px;
    z-index: 50;
    overflow-x: auto;
}

.terms-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-right: 0.5rem;
}

.terms-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.2s;
}

.terms-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.terms-nav-link.active {
    background: var(--red-600);
    color: var(--white);
}

/* Main Content */
.terms-main {
    background: var(--gray-50);
    padding: 3rem 1.5rem;
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .terms-container {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

/* Sidebar */
.terms-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .terms-sidebar {
        display: block;
        position: sticky;
        top: 140px;
        height: fit-content;
    }
}

.toc-card {
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.toc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1rem 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.toc-list a:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.toc-list a.active {
    background: #fef2f2;
    color: var(--red-600);
    border-left-color: var(--red-600);
    font-weight: 600;
}

/* GDPR Card */
.gdpr-card {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 1rem;
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
}

.gdpr-badge {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.gdpr-badge svg {
    width: 28px;
    height: 28px;
}

.gdpr-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.gdpr-card p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
}

.download-card {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    border-radius: 1rem;
    padding: 1.5rem;
    color: var(--white);
}

.download-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.download-card p {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin: 0 0 1rem 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    color: var(--gray-800);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Terms Content */
.terms-content {
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    padding: 2rem;
}

@media (min-width: 768px) {
    .terms-content {
        padding: 3rem;
    }
}

/* Terms Sections */
.terms-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.terms-section:first-child {
    padding-top: 0;
}

.terms-section:last-of-type {
    border-bottom: none;
}

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--red-600);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.terms-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem 0;
}

.terms-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1.25rem 0 0.5rem 0;
}

.terms-section p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.terms-section ul,
.terms-section ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.terms-section li {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.terms-section a {
    color: var(--blue-600);
    text-decoration: none;
}

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

/* Highlight Boxes */
.highlight-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.highlight-box.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.highlight-box.green {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.highlight-box.amber {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.highlight-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.highlight-box.blue .highlight-content p {
    color: #1e40af;
}

.highlight-box.green .highlight-content p {
    color: #166534;
}

.highlight-box.amber .highlight-content p {
    color: #92400e;
}

/* Info Card */
.info-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 1rem 0;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0 !important;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Info Tables */
.info-table {
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.info-table th {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

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

.info-table tr:hover td {
    background: var(--gray-50);
}

/* Legal Basis Grid */
.legal-basis-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .legal-basis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .legal-basis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.legal-basis-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.legal-basis-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.legal-basis-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-basis-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0 !important;
}

.legal-basis-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.right-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s;
}

.right-card:hover {
    border-color: var(--red-600);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.right-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.right-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 0.5rem 0 !important;
}

.right-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--red-600);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Acceptance Box */
.acceptance-box {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd;
    border-radius: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.acceptance-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.acceptance-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 0.5rem 0;
}

.acceptance-content p {
    font-size: 0.95rem;
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
}

.acceptance-date {
    margin-top: 0.75rem !important;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .terms-content {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.25rem;
    }

    .section-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .acceptance-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .info-table {
        font-size: 0.8rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.5rem 0.75rem;
    }

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

/* Print Styles */
@media print {
    .page-header,
    .terms-nav,
    .terms-sidebar,
    .download-card,
    .gdpr-card {
        display: none !important;
    }

    .terms-main {
        padding: 0;
        background: white;
    }

    .terms-container {
        display: block;
    }

    .terms-content {
        border: none;
        padding: 0;
    }

    .terms-section {
        page-break-inside: avoid;
    }
}