@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');

/* ======================================
   EducPro Legal Pages - Modern Style
   Matches Login Page Aesthetic
   ====================================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --border-soft: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: var(--text-dark);
}

/* ======================================
   Layout Container
   ====================================== */

.legal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    padding: 24px;
    gap: 20px;
}

/* ======================================
   Header
   ====================================== */

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 30px 50px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    position: relative;
}

/* Subtle pattern overlay */
.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 0;
}

.header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
}

.btn-home {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    border-radius: 12px;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-home:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ======================================
   Main Content
   ====================================== */

.legal-content {
    flex: 1;
    background-color: transparent;
    padding: 8px 0;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ======================================
   Legal Sections
   ====================================== */

.legal-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
}

.legal-section.retro-box {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e7ff;
    letter-spacing: -0.5px;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

.section-body p {
    margin-bottom: 14px;
}

.section-body strong {
    font-weight: 600;
    color: var(--text-dark);
}

.legal-list {
    list-style: none;
    margin: 14px 0 14px 30px;
    padding: 0;
}

.legal-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    line-height: 1.6;
}

.legal-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ======================================
   Footer
   ====================================== */

.legal-footer {
    background: var(--bg-white);
    padding: 40px 50px;
    box-shadow: var(--shadow-md);
    margin-top: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.footer-section a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    font-weight: 400;
}

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

.footer-section p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ======================================
   Responsive Design
   ====================================== */

@media (max-width: 1024px) {
    .legal-header {
        padding: 25px 35px;
    }

    .legal-content {
        padding: 8px 0;
    }

    .legal-footer {
        padding: 30px 35px;
    }

    .header-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .legal-header {
        flex-direction: column;
        padding: 20px 25px;
        text-align: center;
    }

    .header-content {
        align-items: center;
    }

    .btn-home {
        width: 100%;
        max-width: 250px;
    }

    .legal-content {
        padding: 8px 0;
    }

    .legal-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 15px;
    }

    .section-body {
        font-size: 13px;
    }

    .legal-footer {
        padding: 25px;
    }

    .footer-content {
        gap: 25px;
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 24px;
    }

    .header-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .legal-container {
        padding: 12px;
        gap: 12px;
    }

    .legal-header {
        padding: 15px 16px;
        border-radius: 14px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .btn-home {
        font-size: 12px;
        padding: 10px 16px;
    }

    .legal-content {
        padding: 4px 0;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .section-body {
        font-size: 12px;
        line-height: 1.6;
    }

    .legal-section {
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
    }

    .legal-list {
        margin-left: 24px;
    }

    .legal-footer {
        padding: 16px;
        border-radius: 14px;
    }

    .footer-section h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .footer-section a,
    .footer-section p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 12px 12px;
    }

    .header-title {
        font-size: 18px;
    }

    .header-subtitle {
        font-size: 10px;
    }

    .btn-home {
        font-size: 11px;
        padding: 8px 12px;
    }

    .legal-content {
        padding: 2px 0;
    }

    .section-title {
        font-size: 13px;
    }

    .section-body {
        font-size: 11px;
    }

    .legal-section {
        padding: 12px;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }
}

/* ======================================
   Print Styles
   ====================================== */

@media print {
    body {
        background: white;
    }

    .legal-header,
    .legal-footer {
        box-shadow: none;
    }

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

    .btn-home {
        display: none;
    }
}

/* ======================================
   Accessibility
   ====================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .legal-section {
        border-width: 2px;
    }

    .section-body {
        font-weight: 500;
    }
}

/* ======================================
   RETRO BOX STYLES (Global Reusable)
   ====================================== */

.retro-box {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    transition: all 0.2s ease;
    border-radius: 16px;
}

.retro-box:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.retro-box:active,
.retro-box.active {
    transform: none;
    box-shadow: var(--shadow-md);
    border-style: solid;
}

.retro-btn {
    border: none;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

.retro-btn:hover {
    filter: brightness(1.1);
    transform: none;
    box-shadow: var(--shadow-md);
}

.retro-btn:active {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-style: none;
}
