/* Terms Page Styles - Consistent with Admin Dashboard Design System */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Consistent with Admin Dashboard */
:root {
    --primary: #004aad;
    --primary-dark: #003a87;
    --secondary: #f4f4f4;
    --accent: #ffb703;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border: #e1e1e1;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --modal-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: var(--shadow);
    border-radius: 0; /* Remove border radius for consistency */
}

/* Header Section - Consistent with Admin Dashboard */
.header {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-radius: 0; /* Remove border radius for consistency */
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

/* Content Section */
.content {
    padding: 3rem 2rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-header .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Terms Content Box - Consistent Card Styling */
.terms-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px; /* Consistent with admin dashboard */
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow);
    border: 1px solid var(--border); /* Add border for consistency */
}

/* Typography within Terms Content - Consistent with Forms */
.terms-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.terms-content h4 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 500;
}

.terms-content p {
    margin-bottom: 1.2rem;
    color: var(--text);
    line-height: 1.8;
}

.terms-content ul,
.terms-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text);
}

.terms-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.terms-content strong {
    color: var(--primary);
    font-weight: 600;
}

.terms-content em {
    color: var(--danger);
    font-style: italic;
}

/* Footer Section - Consistent with Admin Dashboard */
.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 0; /* Remove border radius for consistency */
}

.footer p {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Back Button - Consistent Button Styling */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4);
}

.back-button i {
    font-size: 0.9rem;
}

/* Responsive Design - Consistent Breakpoints */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .content {
        padding: 2rem 1rem;
    }

    .terms-content {
        padding: 1.5rem;
        border-radius: 8px; /* Slightly smaller for mobile */
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .back-button {
        display: none;
    }

    .header {
        background: var(--white) !important;
        color: var(--text) !important;
    }

    .footer {
        background: var(--white) !important;
        color: var(--text) !important;
    }

    .terms-content {
        box-shadow: none !important;
        border: 1px solid var(--border) !important;
    }
}
