/* =============================================
   ACADEMY – Policy Pages Shared CSS
   (Privacy | Terms | Cookie Policy)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Source+Serif+4:wght@400;600;700&display=swap');

:root {
    --primary: #0056D2;
    --primary-dark: #003d99;
    --primary-light: #e8f0fe;
    --accent: #0073e6;
    --dark: #1f1f1f;
    --text: #3c3c3c;
    --text-muted: #636363;
    --border: #e0e0e0;
    --bg-light: #f5f7ff;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.nav-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ---- POLICY HERO ---- */
.policy-hero {
    margin-top: 64px;
    background: linear-gradient(135deg, #0056D2 0%, #1A3C8B 50%, #0073e6 100%);
    padding: 72px 80px 64px;
    position: relative;
    overflow: hidden;
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    border-radius: 50%;
}

.policy-hero-inner {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.policy-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 20px;
}

.policy-breadcrumb a {
    color: rgba(255, 255, 255, .7);
    transition: var(--transition);
}

.policy-breadcrumb a:hover {
    color: white;
}

.policy-breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: .6;
}

.policy-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid rgba(255, 255, 255, .25);
    margin-bottom: 16px;
}

.policy-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 14px;
}

.policy-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, .8);
    max-width: 560px;
    line-height: 1.7;
}

.policy-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.policy-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-meta-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.policy-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

/* ---- POLICY LAYOUT ---- */
.policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

/* ---- SIDEBAR TOC ---- */
.policy-toc {
    position: sticky;
    top: 84px;
    align-self: start;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.policy-toc h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.toc-list a:hover,
.toc-list a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.toc-list a.active {
    border-left: 3px solid var(--primary);
}

/* ---- CONTENT ---- */
.policy-content {
    min-width: 0;
}

.policy-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.policy-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.policy-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.3px;
}

.policy-section p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 14px;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-section ul,
.policy-section ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.policy-section li {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 6px;
}

.policy-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 22px 0 10px;
}

.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 20px;
    margin: 20px 0;
}

.highlight-box p {
    color: var(--dark);
    font-weight: 500;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.info-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.info-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.policy-table th {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.policy-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.policy-table tr:nth-child(even) td {
    background: var(--bg-light);
}

.policy-table tr:last-child td {
    border-bottom: none;
}

/* ---- CONTACT CARD ---- */
.contact-card {
    background: linear-gradient(135deg, #0056D2, #0073e6);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 52px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.contact-card a {
    color: #7dd3fc;
    font-weight: 600;
}

.contact-card a:hover {
    color: white;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 38px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---- FOOTER ---- */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, .7);
    padding: 60px 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 24px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-link:hover {
    background: var(--primary);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-text {
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links a.active {
    color: #7dd3fc;
    font-weight: 600;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
        padding: 40px 24px 60px;
    }

    .policy-toc {
        position: static;
        max-height: none;
    }

    .policy-hero {
        padding: 60px 24px 48px;
    }

    .policy-hero h1 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 48px 24px 0;
    }

    .policy-meta {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 30px;
        right: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}