@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Design tokens mirrored from login.css so the public policy page reads as the
   same product. Kept standalone (rather than importing login.css) because that
   file's .container is a two-panel flex layout that would fight this one. */
:root {
    --primary: #1c2e42;
    --primary-dark: #0f1a25;
    --accent: #00d2ff;
    --accent-hover: #3a7bd5;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif !important;
}

body {
    font-family: "Outfit", sans-serif !important;
    font-weight: 400;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), #243b55);
    background-attachment: fixed;
    color: var(--text-light);
    padding: 40px 20px;
    position: relative;
}

/* ---- Starfield (same treatment as the login screen) ---- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0%   { opacity: 0.2; transform: scale(0.8); }
    50%  { opacity: 1;   transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* ---- Card ---- */
.policy-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.policy-card {
    background: rgba(28, 46, 66, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    padding: 48px;
}

/* ---- Header ---- */
.policy-header {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

.policy-logo {
    display: block;
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin: 0 auto 18px;
    filter: drop-shadow(0 6px 20px rgba(0, 140, 255, 0.4));
}

.policy-header h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.policy-brand {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.last-updated {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.last-updated i {
    color: var(--accent);
    margin-right: 6px;
}

/* ---- Content ---- */
.policy-intro {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.policy-section {
    margin-bottom: 34px;
}

.policy-section:last-of-type {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.policy-section h2 i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.policy-section p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 14px;
}

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

.policy-section ul {
    list-style: none;
    margin: 0 0 14px 0;
}

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

.policy-section li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.policy-section li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(0, 210, 255, 0.6);
}

.policy-section a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
    word-break: break-word;
}

.policy-section a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Contact block ---- */
.contact-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 4px;
}

.contact-block p {
    margin-bottom: 8px;
}

.contact-block p:last-child {
    margin-bottom: 0;
}

.contact-block strong {
    color: var(--text-light);
    font-weight: 600;
}

/* ---- Footer ---- */
.policy-footer {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-to-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

.policy-footer .powered-by {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.policy-footer .powered-by strong {
    color: var(--text-light);
    font-weight: 600;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    body {
        padding: 20px 14px;
    }

    .policy-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .policy-logo {
        width: 62px;
        height: 62px;
        margin-bottom: 14px;
    }

    .policy-header h1 {
        font-size: 23px;
    }

    .policy-header {
        padding-bottom: 22px;
        margin-bottom: 26px;
    }

    .policy-section h2 {
        font-size: 17px;
    }

    .policy-section p,
    .policy-section li {
        font-size: 14.5px;
    }

    .contact-block {
        padding: 16px 18px;
    }

    .back-to-login {
        width: 100%;
        justify-content: center;
    }
}
