/* ============================================= */
/* --- STYLES FOR POLICY / TOS PAGE --- */
/* ============================================= */

/* --- Offer Header (replaces Policy Hero) --- */
.offer-header {
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.offer-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2;
}

.offer-header .container {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.offer-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #ffffff;
    font-family: 'Franklin Gothic Demi', 'Arial Narrow', Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 15px;
}

.offer-meta {
    font-size: 1.1rem;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.offer-meta span {
    margin: 0 10px;
}


/* --- Policy Page Content --- */
.policy-page-content {
    max-width: 900px;
    padding: 60px 20px;
}

/* --- Policy Content (from DB) --- */
.policy-content {
    line-height: 1.8;
    color: #3f3f46;
}

.policy-content h1,
.policy-content h2,
.policy-content h3,
.policy-content h4 {
    font-family: 'Franklin Gothic Demi', 'Arial Narrow', Arial, sans-serif;
    color: #18181B;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* This H1 style will apply to any H1 *not* removed by the script */
.policy-content h1 {
    font-size: 2.2rem;
    padding-top: 15px;
    border-top: 2px solid #8B5CF6;
}

.policy-content h2 {
    font-size: 1.8rem;
    color: #8B5CF6;
}

.policy-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
}

.policy-content p {
    margin-bottom: 1.5em;
}

.policy-content ul,
.policy-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 10px;
}

.policy-content strong {
    font-weight: bold;
    color: #18181B;
}

.policy-content a {
    color: #8B5CF6;
    text-decoration: underline;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.policy-content th,
.policy-content td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}
.policy-content th {
    background-color: #f4f4f5;
    font-weight: bold;
    color: #18181B;
}

/* --- Error block styles (if doc not found) --- */
.error-container {
    text-align: center;
    padding: 60px 40px;
    background-color: #f9fafb;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.error-title {
    color: #ef4444;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.error-message {
    color: #71717A;
    margin-bottom: 30px;
}

/* --- Hero Button (used on error page) --- */
.hero-button {
    display: inline-block;
    background-color: #8B5CF6;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Franklin Gothic Demi', Arial, sans-serif;
    transition: background-color 0.3s;
}
.hero-button:hover {
    background-color: #7c3aed;
}

