/*
================================================================================
File: legal-pages.css
Location: ubec_platform/static/css/legal-pages.css
================================================================================

UBEC Platform - Legal Pages Stylesheet

Extends ubec-common.css with legal page-specific components for:
  - Terms of Service
  - Privacy Policy
  - Impressum (Legal Notice)

USAGE:
  <link rel="stylesheet" href="/static/css/ubec-common.css">
  <link rel="stylesheet" href="/static/css/legal-pages.css">
  <body class="theme-legal">

Copyright (C) 2024-2025 UBEC DAO
License: GNU General Public License version 3 (GPL-3.0)

This project uses the services of Claude and Anthropic PBC to inform our
decisions and recommendations. This project was made possible with the
assistance of Claude and Anthropic PBC.
================================================================================
*/

/* ============================================================================
   LEGAL PAGE THEME
   ============================================================================ */

body.theme-legal {
    background: var(--bg-primary);
    min-height: 100vh;
}


/* ============================================================================
   CONTENT CARD (Main Legal Content Container)
   ============================================================================ */

.legal-content-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .legal-content-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }
}


/* ============================================================================
   PAGE HEADER (Legal Document Header)
   ============================================================================ */

.legal-page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.legal-page-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.legal-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-page-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .legal-page-title {
        font-size: 1.5rem;
    }
}


/* ============================================================================
   SECTIONS
   ============================================================================ */

.legal-section {
    margin-bottom: 2rem;
}

.legal-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ubec-green-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section-content p {
    margin-bottom: 1rem;
}

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


/* ============================================================================
   LISTS (Legal Document Lists)
   ============================================================================ */

.legal-section-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.legal-section-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.legal-section-content li::before {
    content: "•";
    color: var(--ubec-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}


/* ============================================================================
   INFO BOXES (Various Styled Boxes)
   ============================================================================ */

/* Provider Box - Green accent (Company/Service Provider info) */
.legal-box-provider {
    background: var(--pastel-mint);
    border-left: 4px solid var(--ubec-green);
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1rem 0;
}

.legal-box-provider h4 {
    color: var(--ubec-green-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-box-provider p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.legal-box-provider a {
    color: var(--ubec-green);
    text-decoration: none;
}

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

/* Important Box - Orange/Peach accent (Warnings, Important notices) */
.legal-box-important {
    background: var(--pastel-peach);
    border-left: 4px solid var(--warning);
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.legal-box-important h4 {
    color: #b45309;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-box-important p {
    margin: 0;
    color: var(--text-secondary);
}

/* Highlight Box - Purple/Lavender accent (Key points, GDPR notices) */
.legal-box-highlight {
    background: var(--pastel-lavender);
    border-left: 4px solid #9C27B0;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
}

.legal-box-highlight p {
    margin: 0;
    color: var(--text-primary);
}

/* Law Box - Blue accent (Legal references, jurisdiction) */
.legal-box-law {
    background: var(--pastel-sky);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.legal-box-law h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-box-law p {
    margin: 0;
    color: var(--text-secondary);
}

/* Info Box - General blue (Generic information blocks) */
.legal-box-info {
    background: var(--pastel-sky);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.legal-box-info h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-box-info p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}


/* ============================================================================
   CONTACT INFO BOX
   ============================================================================ */

.legal-contact-info {
    background: var(--pastel-sky);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.legal-contact-info h3 {
    color: var(--ubec-green-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.legal-contact-info p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.legal-contact-info a {
    color: var(--ubec-green);
    text-decoration: none;
}

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


/* ============================================================================
   CONTACT GRID (Impressum page)
   ============================================================================ */

.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.legal-contact-card {
    background: var(--pastel-sky);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.legal-contact-card h4 {
    color: var(--ubec-green-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.legal-contact-card p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-contact-card a {
    color: var(--ubec-green);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .legal-contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   DATA TABLES (Privacy Policy)
   ============================================================================ */

.legal-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.legal-data-table th,
.legal-data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.legal-data-table th {
    background: var(--pastel-mint);
    color: var(--ubec-green-dark);
    font-weight: 700;
}

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

.legal-data-table tr:hover td {
    background: var(--bg-primary);
}

@media (max-width: 768px) {
    .legal-data-table {
        font-size: 0.8rem;
    }
    
    .legal-data-table th,
    .legal-data-table td {
        padding: 0.5rem 0.75rem;
    }
}


/* ============================================================================
   RIGHTS BOX (GDPR Rights)
   ============================================================================ */

.legal-rights-box {
    background: var(--ubec-green-soft);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.legal-rights-box h3 {
    color: var(--ubec-green-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.legal-rights-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-rights-item span:first-child {
    flex-shrink: 0;
}


/* ============================================================================
   SECURITY GRID (Privacy Policy)
   ============================================================================ */

.legal-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.legal-security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--pastel-sky);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ============================================================================
   COOKIE INFO BOX
   ============================================================================ */

.legal-cookie-info {
    background: var(--pastel-peach);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.legal-cookie-info h4 {
    color: #c2410c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-cookie-info p {
    margin: 0;
    color: var(--text-secondary);
}


/* ============================================================================
   DISPUTE BOX (Impressum)
   ============================================================================ */

.legal-dispute-box {
    background: var(--pastel-lavender);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.legal-dispute-box p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.legal-dispute-box a {
    color: #7c3aed;
    text-decoration: none;
}

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

.legal-dispute-box em {
    color: var(--text-muted);
}


/* ============================================================================
   BACK LINK
   ============================================================================ */

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ubec-green);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    padding: 0.75rem 1.25rem;
    background: var(--ubec-green-soft);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.legal-back-link:hover {
    background: var(--ubec-green);
    color: var(--white);
}


/* ============================================================================
   LEGAL PAGE FOOTER (Dark style matching index.html)
   ============================================================================ */

.footer.footer-dark {
    background: #1e3a1e;
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 5px solid var(--ubec-green-dark);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer.footer-dark strong {
    font-weight: 700;
}

.footer.footer-dark p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
}

.footer.footer-dark .footer-tagline {
    opacity: 0.8;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.footer.footer-dark .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.footer.footer-dark .footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer.footer-dark .footer-links a:hover {
    color: white;
}

.footer.footer-dark .footer-copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer.footer-dark .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* ============================================================================
   LEGAL PAGE FOOTER (Light style - Alternative)
   ============================================================================ */

.legal-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.legal-footer a {
    color: var(--ubec-green);
    text-decoration: none;
    margin: 0 0.5rem;
}

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

.legal-footer p {
    margin: 0.25rem 0;
}


/* ============================================================================
   LEGAL TEXT (Dense paragraphs)
   ============================================================================ */

.legal-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
    hyphens: auto;
}


/* ============================================================================
   WIDE CONTAINER (Privacy Policy - for tables)
   ============================================================================ */

.main-container-wide .legal-content-card {
    max-width: 900px;
}


/* ============================================================================
   CONTROLLER BOX (Privacy Policy - Data Controller)
   ============================================================================ */

.legal-controller-box {
    background: linear-gradient(135deg, var(--pastel-mint) 0%, var(--pastel-sky) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    border: 1px solid var(--border-light);
}

.legal-controller-box h3,
.legal-controller-box h4 {
    color: var(--ubec-green-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.legal-controller-box p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.legal-controller-box a {
    color: var(--ubec-green);
    text-decoration: none;
}

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


/* ============================================================================
   RIGHTS BOX TEXT (Privacy Policy - GDPR Rights)
   ============================================================================ */

.legal-rights-intro {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-rights-exercise {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.legal-rights-exercise a {
    color: var(--ubec-green);
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .legal-rights-list {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   SUPERVISOR BOX (Privacy Policy - Supervisory Authority)
   ============================================================================ */

.legal-supervisor-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1rem 0;
}

.legal-supervisor-box h4 {
    color: #b45309;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-supervisor-box p {
    margin: 0;
    color: var(--text-secondary);
}

.legal-supervisor-box a {
    color: #b45309;
    text-decoration: none;
}

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