/* ===================================
   IPN LEGAL PAGES - CUSTOM STYLES
   Legal-specific styling for compliance pages
   =================================== */

/* ===================================
   Hero Section - Legal Pages
   =================================== */

/* Hero section with image only (no overlay) */
.legal-hero {
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

/* Hero title - single line, full display */
.legal-hero .hero-title {
    font-size: 3rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* ===================================
   Contact Information Cards
   =================================== */

/* Contact icons - same height as text */
.legal-contact-card .bi {
    font-size: 1.25rem;
    line-height: 1.5rem;
    vertical-align: middle;
}

.legal-contact-card p {
    line-height: 1.5rem;
}

/* ===================================
   Feature/Info Cards with Icons
   =================================== */

/* Make card icons more prominent */
.legal-feature-card .bi {
    font-size: 2.5rem;
    line-height: 1;
}

/* GDPR principle cards */
.legal-principle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.legal-principle-card .bi {
    font-size: 2rem;
    line-height: 1;
}

/* ===================================
   Typography Consistency
   =================================== */

/* Section titles */
.legal-content .section-title {
    color: #293219;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

/* Section descriptions */
.legal-content .section-description {
    color: var(--ipn-text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

/* Subsection headings (h3) */
.legal-content h3.h5 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #293219 !important;
}

/* Icons inside h3 headings keep primary color for visual interest */
.legal-content h3.h5 .bi,
.legal-principle-card h3 .bi {
    color: var(--ipn-primary) !important;
}

/* Lists */
.legal-content ul,
.legal-content ol {
    line-height: 1.75;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 0.5rem;
}

/* ===================================
   Accordion Styling (Cookie Policy)
   =================================== */

.legal-accordion .accordion-button {
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
}

.legal-accordion .accordion-button .bi {
    font-size: 1.5rem;
    line-height: 1;
}

.legal-accordion .accordion-body {
    padding: 1.5rem;
}

/* ===================================
   Tables (Cookie Policy)
   =================================== */

.legal-table {
    font-size: 0.95rem;
}

.legal-table th {
    font-weight: 700;
    color: #293219;
    padding: 1rem;
}

.legal-table td {
    padding: 0.875rem 1rem;
}

.legal-table code {
    background-color: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #333E1F;
}

/* ===================================
   Alert Boxes
   =================================== */

.legal-alert {
    border-radius: 8px;
    padding: 1.25rem;
}

.legal-alert .bi {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* ===================================
   Mobile Responsiveness
   =================================== */

@media (max-width: 991.98px) {
    .legal-hero .hero-title {
        font-size: 2.25rem;
    }

    .legal-content .section-title {
        font-size: 1.75rem;
    }

    .legal-feature-card .bi {
        font-size: 2rem;
    }

    .legal-principle-card .bi {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .legal-hero .hero-title {
        font-size: 1.75rem;
    }

    .legal-content .section-title {
        font-size: 1.5rem;
    }

    .legal-feature-card .bi {
        font-size: 1.75rem;
    }

    .legal-principle-card .bi {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .legal-hero {
        min-height: 300px;
    }

    .legal-hero .hero-title {
        font-size: 1.5rem;
    }

    .legal-content .section-title {
        font-size: 1.25rem;
    }
}
