@import url("layout.css");
@import url("hero.css");
@import url("map.css");
@import url("popup.css");
@import url("search.css");
@import url("create.css");
@import url("details.css");
@import url("edit-spot.css");
@import url("auth.css");
@import url("my-spots.css");
@import url("pending-spots.css");
@import url("error.css");


/* =========================================================
    GLOBAL SETTINGS
   ========================================================= */

html {
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: radial-gradient( circle at top, var(--background-glow) 0%, var(--background-color) 42% );
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
}

    /*
    Main content fills the available space between
    the navigation and the footer.
*/
    body > .container {
        flex: 1;
    }


/* =========================================================
    THEME VARIABLES
   ========================================================= */

:root {
    --background-color: #f4f7f3;
    --background-glow: #dcebd8;
    --surface-color: #ffffff;
    --surface-hover-color: #edf5ea;
    --text-color: #182019;
    --secondary-text-color: #5e6d61;
    --border-color: #d3ddd1;
    --accent-color: #2f8f46;
    --accent-hover-color: #26763a;
    --accent-soft-color: rgba(47, 143, 70, 0.14);
    --shadow-color: rgba(22, 40, 25, 0.14);
}

html[data-theme="dark"] {
    --background-color: #090d0a;
    --background-glow: #14281a;
    --surface-color: #111713;
    --surface-hover-color: #18221a;
    --text-color: #f2f7f3;
    --secondary-text-color: #9eada1;
    --border-color: #28352b;
    --accent-color: #72ff6a;
    --accent-hover-color: #9aff94;
    --accent-soft-color: rgba(114, 255, 106, 0.14);
    --shadow-color: rgba(0, 0, 0, 0.45);
}


/* =========================================================
    FORM AND BUTTON FOCUS
   ========================================================= */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.12rem var(--surface-color), 0 0 0 0.28rem var(--accent-soft-color);
}


/* =========================================================
   PRIVACY PAGE
   ========================================================= */

.privacy-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 16px 60px;
}

.privacy-header {
    text-align: center;
    margin-bottom: 35px;
}

.privacy-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.privacy-header h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

.privacy-header > p {
    max-width: 650px;
    margin: 0 auto 12px;
    opacity: 0.8;
    line-height: 1.6;
}

.privacy-updated {
    font-size: 0.85rem;
    opacity: 0.6;
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.privacy-section {
    padding: 24px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 14px;
    background: rgba(128, 128, 128, 0.04);
}

    .privacy-section h2 {
        margin: 0 0 14px;
        font-size: 1.25rem;
        font-weight: 700;
    }

    .privacy-section p {
        margin-bottom: 12px;
        line-height: 1.7;
    }

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

    .privacy-section ul {
        margin: 12px 0 16px;
        padding-left: 22px;
    }

    .privacy-section li {
        margin-bottom: 8px;
        line-height: 1.55;
    }

.privacy-note {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid #198754;
    border-radius: 8px;
    background: rgba(25, 135, 84, 0.08);
    line-height: 1.6;
}

.privacy-email {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

    .privacy-email:hover {
        text-decoration: underline;
    }

.privacy-contact-section {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

    .privacy-contact-section p {
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

.privacy-contact-button {
    margin-top: 8px;
}


/* Mobile */

@media (max-width: 576px) {

    .privacy-page {
        padding: 18px 4px 40px;
    }

    .privacy-header {
        margin-bottom: 25px;
    }

        .privacy-header h1 {
            font-size: 1.9rem;
        }

    .privacy-section {
        padding: 18px;
        border-radius: 12px;
    }

        .privacy-section h2 {
            font-size: 1.15rem;
        }

        .privacy-section p,
        .privacy-section li {
            font-size: 0.95rem;
        }
}