/* ========================================================
   1. CORE VARIABLES, RESETS & BASE LAYOUT
   ======================================================== */
:root {
    --bg-dark-main: #0F1115;
    --color-ice-blue: #A8D8FF;
    --color-misty-slate: #B7C6D9;
    --color-soft-amber: #EBA16C;
    --color-golden-glow: #F5B97A;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark-main);
    color: var(--color-misty-slate);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* ========================================================
   2. GLOBAL HEADER BRANDING (LOGO)
   ======================================================== */
.header-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    width: auto;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(235, 161, 108, 0.3));
}

/* ========================================================
   3. BUTTONS & INTERACTIVE ELEMENTS
   ======================================================== */
.btn-submit {
    padding: 16px 45px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background: rgba(42, 27, 18, 0.6);
    border: 1px solid rgba(235, 161, 108, 0.4);
    color: var(--color-soft-amber);
    backdrop-filter: blur(5px);
}

.btn-submit:hover {
    background: var(--color-soft-amber);
    color: var(--bg-dark-main);
    transform: translateY(0px);
    border-color: var(--color-soft-amber);
    box-shadow: 0 0 25px rgba(235, 161, 108, 0.5), 
                0 0 10px rgba(235, 161, 108, 0.3);
}

.back-link {
    display: inline-block;
    margin-bottom: 60px;
    color: var(--color-misty-slate);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-decoration: none;
    transition: transform 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
    color: var(--color-ice-blue);
}

/* ========================================================
   4. CONTACT FORM ELEMENTS
   ======================================================== */
.contact-header {
    text-align: center;
    max-width: 600px;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-style: italic;
    color: var(--color-soft-amber);
    margin-bottom: 15px;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-ice-blue);
    margin-left: 5px;
}

.contact-form input, 
.contact-form textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(183, 198, 217, 0.2);
    border-radius: 8px;
    padding: 15px;
    color: white !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* MAGIC: Fix for Browser Autofill Backgrounds */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #181A1F inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-soft-amber);
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ========================================================
   5. EDITORIAL POLICIES & TERMS STYLES
   ======================================================== */
.policy-container {
    background-color: var(--bg-dark-main);
    min-height: 100vh;
    padding: 100px 20px; /* Aligned slightly deeper to replace page-container padding safely */
    display: flex;
    justify-content: center;
}

.policy-content {
    max-width: 850px;
    width: 100%;
    color: var(--color-misty-slate);
    line-height: 1.8;
    font-family: var(--font-sans);
}

.policy-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-soft-amber);
    margin-bottom: 20px;
    text-align: center;
    font-style: italic;
}

.last-updated {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 60px;
    opacity: 0.7;
    letter-spacing: 1px;
}

.policy-content h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-ice-blue);
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(168, 216, 255, 0.1);
    padding-bottom: 10px;
}

.policy-content p, 
.policy-content li {
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 1.05rem;
}

.policy-content strong {
    color: #fff;
    font-weight: 600;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content a {
    color: var(--color-golden-glow);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-golden-glow);
    transition: all 0.3s;
}

.policy-content a:hover {
    opacity: 0.8;
    border-bottom-style: solid;
}

.important-notice {
    background: rgba(235, 161, 108, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--color-soft-amber);
    margin-bottom: 30px;
}

/* ========================================================
   6. ERROR 404 WATERMARK COMPONENTS
   ======================================================== */
.section-tagline {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-misty-slate);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.95;
}
.error-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 40px;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 18rem;
    color: rgba(168, 216, 255, 0.1);
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    user-select: none;
}

.error-content-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ========================================================
   7. FOOTER INTERFACE
   ======================================================== */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid rgba(168, 216, 255, 0.05);
}

.footer-social {
    margin-bottom: 20px;
}

.tiktok-link {
    display: inline-block;
    width: 24px;
    transition: transform 0.3s ease;
}

.tiktok-icon {
    fill: var(--color-misty-slate);
    transition: fill 0.3s ease;
}

.tiktok-link:hover .tiktok-icon {
    fill: var(--color-soft-amber);
}

.tiktok-link:hover {
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-misty-slate);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.footer-links a:hover {
    color: var(--color-soft-amber);
    text-shadow: 0 0 10px rgba(235, 161, 108, 0.4), 
                 0 0 20px rgba(235, 161, 108, 0.2);
}

/* ========================================================
   8. MOBILE RESPONSIVENESS (STRATEGY A)
   ======================================================== */
@media (max-width: 768px) {
    .header-logo {
        top: 25px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn-submit {
        padding: 14px 30px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .policy-container { 
        padding: 60px 15px; 
    }
    
    .policy-content h1 { 
        font-size: 2.2rem; 
    }
}