/* ===========================
   CheckGeo Policy Pages CSS
   =========================== */

html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.7;
}

/* ---- Header ---- */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo img { height: 44px; width: auto; }

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

nav a:hover { color: #42b72a; }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, #1c1e21 0%, #2d3035 100%);
    color: #fff;
    padding: 3.5rem 2rem 3rem;
    text-align: center;
}

.page-hero .badge {
    display: inline-block;
    background: rgba(66,183,42,0.15);
    border: 1px solid rgba(66,183,42,0.4);
    color: #42b72a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.page-hero .meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ---- Content Layout ---- */
.policy-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* ---- Sections ---- */
.policy-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.policy-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c1e21;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.policy-section h2 .sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #42b72a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}

.policy-section p {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    color: #444;
}

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

.policy-section ul {
    margin: 0.5rem 0 0.9rem 0;
    padding-left: 1.4rem;
}

.policy-section ul li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.4rem;
    padding-left: 0.3rem;
}

.policy-section ul li::marker { color: #42b72a; }

.policy-section strong { color: #1c1e21; }

/* ---- Guarantee Banner ---- */
.guarantee-banner {
    background: linear-gradient(135deg, #42b72a 0%, #389e23 100%);
    color: #fff;
    border-radius: 12px;
    padding: 1.8rem 2.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(66,183,42,0.25);
}

.guarantee-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.guarantee-banner p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

/* ---- Cookie Table ---- */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cookie-table th {
    background: #f0f2f5;
    color: #1c1e21;
    font-weight: 700;
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.cookie-table td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f0f2f5;
    color: #444;
    vertical-align: top;
}

.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:hover td { background: #fafbfc; }

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-necessary { background: #e8f5e2; color: #2d7a1e; }
.tag-analytics  { background: #e8f0ff; color: #2d4db5; }
.tag-functional { background: #fff4e0; color: #9a6200; }
.tag-advertising{ background: #fde8e8; color: #b52d2d; }

/* ---- Contact Box ---- */
.contact-box {
    background: #f8f9fb;
    border-left: 4px solid #42b72a;
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.6rem;
    margin-top: 0.5rem;
}

.contact-box p {
    margin: 0.2rem 0;
    font-size: 0.92rem;
}

.contact-box a { color: #42b72a; text-decoration: none; font-weight: 600; }
.contact-box a:hover { text-decoration: underline; }

/* ---- Footer ---- */
footer {
    background-color: #fff;
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.82rem;
    border-top: 1px solid #eee;
    line-height: 1.8;
}

footer a { color: #42b72a; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 1rem;
}

.footer-links a { font-size: 0.82rem; color: #42b72a; }

.footer-disclaimer {
    max-width: 820px;
    margin: 0.6rem auto 0;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.6;
}

.footer-support { font-size: 0.85rem; color: #555; margin: 0.6rem 0; }
.footer-support a { color: #42b72a; font-weight: 600; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .page-hero h1 { font-size: 1.7rem; }
    .policy-section { padding: 1.5rem; }
    nav ul { display: none; }
}
