/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Monoton&display=swap');

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fff0e6;
    min-height: 100vh;
}

h1 {
    font-family: 'Caprasimo', serif;
    font-size: 2.8rem;
    color: #183b4e;
    margin-bottom: 15px;
    text-align: center;
}

h2 {
    font-family: 'Caprasimo', serif;
    font-size: 1.7rem;
    color: #183b4e;
    margin-bottom: 15px;
    text-align: center;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #641b1b;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #183b4e;
}

strong {
    font-weight: 700;
    color: #641b1b;
}

.highlight {
    font-style: italic;
    font-weight: 600;
    display: inline;
    background: linear-gradient(90deg, rgba(255, 107, 157, 0.3), rgba(192, 111, 253, 0.3));
    background-repeat: no-repeat;
    background-size: 100% 0.4em; /* underline thickness */
    background-position: 0 98%; /* adjust vertical placement */
}

/* Global Typography Responsive */
@media (max-width: 1000px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 485px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
    }
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.navbar {
    background-color: rgba(245, 243, 239, 0.85);
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    height: 60px;
    box-sizing: border-box;
    line-height: 60px;
}

.navbar--hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    color: #1a3659;
    text-decoration: none;
    height: 60px;
    margin: 0;
    padding: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links-div {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    color: #1a3659;
    transition: color 0.3s ease;
    line-height: 1;
}

.nav-links a:hover {
    color: #7d1f42;
    transform: scale(1.05);
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu {
    display: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1a3659;
    margin: 0;
    padding: 0;
    background: none;
}

/* Navigation Responsive */
@media (max-width: 1000px) {
    .menu {
        display: block;
        background: none;
    }

    .nav-links {
        display: none;
    }

    .nav-links.show {
        top: 60px;
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
        flex-direction: column;
        position: fixed;
        left: 0;
        width: 100%;
        background-color: rgba(245, 243, 239, 0.98);
        padding: 1rem;
        gap: 1.5rem;
        z-index: 1001;
        border: none;
    }

    .nav-links a {
        margin-left: 10px !important;
    }

    .nav-links a:hover {
        transform-origin: left center;
    }

    .nav-links a.active {
        position: relative;
        font-weight: 580;
        color: #7d1f42;
    }

    .nav-links a.active::after {
        content: "→";
        position: absolute;
        top: 50%;
        margin-left: 4px;
        transform: translateY(-50%);
        font-size: 1rem;
        color: #7d1f42;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.show a.active::after,
    .nav-links a.active:hover::after {
        opacity: 1;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Legal pages container */
.legal-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 350px);
    padding: 60px;
}

/* Content wrapper with border and shadow */
.legal-content-wrapper {
    max-width: 800px;
    width: 100%;
    padding: 60px 70px;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 3px 3px 0 rgba(2, 32, 63, 0.95);
    background-color: rgba(255, 255, 255, 0.6);
}

/* Header section */
.legal-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-header h1 {
    margin: 0;
    text-align: center;
}

.legal-header p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* Tablet optimization */
@media (max-width: 1000px) {
    .legal-page-container {
        padding: 40px;
    }

    .legal-content-wrapper {
        padding: 50px 40px;
    }
}

/* Mobile optimization */
@media (max-width: 600px) {
    .legal-page-container {
        padding: 25px 20px;
    }

    .legal-content-wrapper {
        padding: 40px 30px;
    }

    .legal-header p {
        font-size: 1rem;
    }
}