/* privacy-policy.php — moved from its inline <style> block (loaded at the same position). */
:root {
    --green: #067647;
    --deep: #062f25;
    --mint: #dff8ec;
    --lime: #a9edc5;
    --ink: #10231d;
    --muted: #62756d;
    --line: #dceae3;
    --gold: #e5b84b;
}

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: var(--ink);
    background: #fbfdfc;
    line-height: 1.7;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Breadcrumb */
.pp-breadcrumb { padding: 22px 0 0; }
.pp-breadcrumb .breadcrumb { margin: 0; }

/* ── Flat hero (matching index.php / contact.php) ── */
.pp-hero {
    padding: 18px 0 36px;
    color: var(--ink);
}
.pp-hero h1 {
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 12px 0 10px;
}
.pp-hero h1 i { color: var(--green); margin-right: 10px; }
.pp-hero .lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 640px; }
.pp-hero .lead i { color: var(--green); margin-right: 6px; }

/* Table of contents */
.toc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.toc h4 {
    color: var(--ink);
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
.toc h4 i { color: var(--green); }

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.toc li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f15c';
    font-size: .85em;
    position: absolute;
    left: 0;
    top: .15em;
    color: var(--green);
}

.toc a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    padding: 2px 6px;
    margin-left: -6px;
    transition: .15s;
}

.toc a:hover { color: var(--green); }

/* Brand-consistent override for the bootstrap contextual text colors still used
   throughout this page's content (mortarboard/gear/security icons, step badges,
   the active TOC link, and the closing heading) — unify them to the green/mint
   brand tokens instead of bootstrap's default blue/orange/teal. */
.section-card .text-primary,
.section-card .text-success,
.section-card .text-warning,
.toc .text-primary {
    color: var(--green) !important;
}
.toc a.text-primary {
    background: var(--mint);
    border-radius: 8px;
}

/* Section cards */
.section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: none;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: .25s;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px #12553616;
}

.section-header {
    background: var(--deep);
    color: #fff;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
}
.section-header i { color: var(--lime); }

.section-body {
    padding: 2rem;
}

.section-body h5 {
    color: var(--green);
    font-family: Inter, 'IBM Plex Sans Thai', sans-serif;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: 0.5rem;
}

.section-body h5:first-child {
    margin-top: 0;
}

.highlight-box {
    background: var(--mint);
    border-left: 4px solid var(--green);
    padding: 1.5rem;
    border-radius: 0 14px 14px 0;
    margin: 1.5rem 0;
}

/* Semantic amber callout — reserved for the "ข้อมูลสำคัญ" notice; left un-rebranded */
.highlight-box.pp-warn {
    background: #fff8e6;
    border-left-color: var(--gold);
}
.highlight-box.pp-warn h6 { color: #8a6d1f; }

.info-table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.info-table th {
    background: var(--deep);
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.info-table td {
    padding: 1rem;
    border-color: var(--line);
    vertical-align: top;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.right-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: .25s;
}

.right-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px #12553616;
}

.right-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: var(--mint);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.security-item {
    background: var(--mint);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}
.security-item i { color: var(--green); }

.contact-dpo {
    background: var(--deep);
    color: #fff;
    border-radius: 18px;
    padding: 2rem;
    margin: 2rem 0;
}
.contact-dpo i { color: var(--lime); }

@media (max-width: 768px) {
    .section-body {
        padding: 1.5rem 1rem;
    }

    .rights-grid,
    .security-measures {
        grid-template-columns: 1fr;
    }
}

/* Accessibility enhancements */
.keyboard-navigation *:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white !important;
    }

    .section-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .btn-back-to-top {
        display: none !important;
    }
}
