/* =========================================================
   FORMULASSIST GROUP
   Privacy Policy — Main Stylesheet
   ========================================================= */


/* =========================================================
   01. ROOT VARIABLES
   ========================================================= */

:root {
    --bg: #04060a;
    --bg-secondary: #080b11;
    --surface: #0d1119;
    --surface-light: #121824;

    --border: #222a36;
    --border-light: #303a49;

    --accent: #e53935;
    --accent-dark: #b71c1c;
    --accent-glow: rgba(229, 57, 53, 0.15);

    --text: #edf0f5;
    --text-secondary: #b0bac8;
    --text-muted: #7f8a9b;

    --font-body: Arial, Helvetica, sans-serif;

    --container-width: 1200px;

    --header-height: 76px;

    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 18px;

    --transition: 0.25s ease;
}


/* =========================================================
   02. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;

    overflow-x: hidden;
}

body,
button,
a {
    font-family: var(--font-body);
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    padding-left: 22px;
}

li {
    padding-left: 4px;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: var(--accent);
    color: #fff;
}


/* =========================================================
   03. GLOBAL UTILITIES
   ========================================================= */

.container {
    width: min(
        var(--container-width),
        calc(100% - 48px)
    );

    margin-inline: auto;
}

.policy-section {
    padding: 75px 0 100px;
}

.policy-card {
    scroll-margin-top: 110px;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}


/* =========================================================
   04. HEADER
   ========================================================= */

.site-header {
    width: 100%;
    height: var(--header-height);

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(4, 6, 10, 0.94);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    width: min(
        1400px,
        calc(100% - 48px)
    );

    height: 100%;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: inline-flex;
    flex-direction: column;

    line-height: 1;

    flex-shrink: 0;
}

.brand-name {
    color: var(--text);

    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-subtitle {
    color: var(--accent);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 5px;

    margin-top: 6px;
}


/* HEADER NAVIGATION */

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    position: relative;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;

    transition: color var(--transition);
}

.site-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: width var(--transition);
}

.site-nav a:hover {
    color: #fff;
}

.site-nav a:hover::after {
    width: 100%;
}


/* MOBILE NAVIGATION BUTTON */

.nav-toggle {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 19px;
    height: 2px;

    background: var(--text);

    transition: var(--transition);
}


/* =========================================================
   05. HERO SECTION
   ========================================================= */

.policy-hero {
    position: relative;
    isolation: isolate;

    padding: 95px 0 85px;

    background:
        linear-gradient(
            110deg,
            rgba(229, 57, 53, 0.09),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #080b11,
            #04060a
        );

    border-bottom: 1px solid var(--border);

    overflow: hidden;
}

.policy-hero::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 450px;
    height: 450px;

    right: -130px;
    top: -220px;

    border: 1px solid rgba(229, 57, 53, 0.13);
    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(229, 57, 53, 0.025),
        0 0 0 90px rgba(229, 57, 53, 0.02);
}

.hero-label {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;

    margin-bottom: 20px;
}

.policy-hero h1 {
    color: #fff;

    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;

    margin-bottom: 22px;
}

.hero-description {
    max-width: 650px;

    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: 30px;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 600;
}

.meta-divider {
    color: var(--accent);
}

.back-link {
    display: inline-block;

    margin-top: 35px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;

    transition: color var(--transition);
}

.back-link:hover {
    color: var(--accent);
}


/* =========================================================
   06. POLICY LAYOUT
   ========================================================= */

.policy-layout {
    display: grid;

    grid-template-columns: 260px minmax(0, 1fr);

    gap: 55px;

    align-items: start;
}


/* =========================================================
   07. TABLE OF CONTENTS
   ========================================================= */

.policy-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 30px);

    max-height: calc(100vh - 130px);

    overflow-y: auto;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

.policy-sidebar::-webkit-scrollbar {
    width: 5px;
}

.policy-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
    margin-bottom: 12px;

    border-bottom: 1px solid var(--border);
}

.toc-header h2 {
    color: #fff;

    font-size: 15px;
    font-weight: 800;
}

.toc-toggle {
    display: none;

    width: 28px;
    height: 28px;

    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 5px;

    color: var(--text);

    font-size: 18px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toc-nav a {
    display: block;

    padding: 9px 10px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    border-left: 2px solid transparent;
    border-radius: 0 5px 5px 0;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.toc-nav a:hover {
    color: #fff;

    background: rgba(255, 255, 255, 0.035);
}

.toc-nav a.is-active {
    color: #fff;

    background: var(--accent-glow);

    border-left-color: var(--accent);
}


/* =========================================================
   08. POLICY ARTICLE
   ========================================================= */

.policy-article {
    min-width: 0;
}

.policy-card {
    padding: 34px;

    margin-bottom: 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    transition: border-color var(--transition);
}

.policy-card:hover {
    border-color: var(--border-light);
}

.policy-card h2 {
    display: flex;
    align-items: center;
    gap: 14px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;

    margin-bottom: 25px;
}

.section-number {
    display: inline-flex;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    background: var(--accent-glow);

    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 8px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
}

.policy-card h3 {
    color: #fff;

    font-size: 15px;
    font-weight: 800;

    margin-top: 28px;
    margin-bottom: 10px;
}

.policy-card p {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.9;

    margin-bottom: 17px;
}

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

.policy-card ul {
    margin: 15px 0 22px;
}

.policy-card li {
    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.85;

    margin-bottom: 7px;
}

.policy-card li::marker {
    color: var(--accent);
}


/* =========================================================
   09. POLICY NOTE
   ========================================================= */

.policy-note {
    padding: 18px 20px;

    margin-top: 25px;

    background: rgba(229, 57, 53, 0.07);

    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.8;
}

.policy-note strong {
    color: #fff;
}


/* =========================================================
   10. DIVISION CARDS
   ========================================================= */

.division-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin: 25px 0;
}

.division-item {
    padding: 20px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    transition:
        border-color var(--transition),
        transform var(--transition);
}

.division-item:hover {
    border-color: rgba(229, 57, 53, 0.5);

    transform: translateY(-3px);
}

.division-item h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 15px;
}

.division-item p {
    font-size: 12px;
    line-height: 1.8;

    margin-bottom: 15px;
}

.division-item a {
    display: inline-block;

    color: var(--accent);

    font-size: 11px;
    font-weight: 800;

    transition: color var(--transition);
}

.division-item a:hover {
    color: #ff7773;
}


/* =========================================================
   11. TABLES
   ========================================================= */

.table-wrap {
    width: 100%;

    margin: 25px 0;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.retention {
    width: 100%;

    min-width: 550px;

    border-collapse: collapse;

    background: var(--bg-secondary);

    text-align: left;
}

.retention th {
    padding: 16px;

    background: var(--surface-light);

    color: #fff;

    font-size: 12px;
    font-weight: 800;

    border-bottom: 1px solid var(--border);
}

.retention td {
    padding: 16px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.7;

    border-bottom: 1px solid var(--border);
}

.retention tr:last-child td {
    border-bottom: none;
}

.retention tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   12. PLACEHOLDERS
   ========================================================= */

mark.ph {
    display: inline;

    padding: 2px 5px;

    background: rgba(255, 193, 7, 0.12);

    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 4px;

    color: #ffd66b;

    font-size: 12px;
    line-height: 1.8;

    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}


/* =========================================================
   13. CONTACT CARD
   ========================================================= */

.contact-card {
    padding: 28px;

    margin-top: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(229, 57, 53, 0.08),
            transparent 65%
        ),
        var(--bg-secondary);

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
}

.contact-heading {
    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.contact-label {
    color: var(--accent);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.contact-heading h3 {
    color: #fff;

    font-size: 21px;

    margin: 8px 0 0;
}

.contact-details {
    padding-top: 18px;
}

.contact-row {
    display: grid;

    grid-template-columns: 145px minmax(0, 1fr);

    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-key {
    color: var(--text-muted);

    font-size: 12px;
    font-weight: 700;
}

.contact-value {
    color: var(--text-secondary);

    font-size: 12px;

    overflow-wrap: anywhere;
}

a.contact-value {
    color: var(--accent);

    transition: color var(--transition);
}

a.contact-value:hover {
    color: #ff7773;
}

.contact-note {
    margin-top: 20px !important;

    font-size: 12px !important;
    color: var(--text-muted) !important;
}


/* =========================================================
   14. POLICY END
   ========================================================= */

.policy-end {
    padding: 45px 20px 10px;

    text-align: center;
}

.end-line {
    display: block;

    width: 55px;
    height: 3px;

    margin: 0 auto 20px;

    background: var(--accent);
}

.policy-end p {
    color: #fff;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
}

.end-tagline {
    display: block;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 11px;
    letter-spacing: 1px;
}


/* =========================================================
   15. FOOTER
   ========================================================= */

.site-footer {
    padding: 65px 0 0;

    background: #070a10;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 45px;

    padding-bottom: 55px;
}

.footer-brand .brand {
    margin-bottom: 22px;
}

.footer-brand > p {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 700;
}

.footer-brand .footer-description {
    max-width: 280px;

    margin-top: 12px;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
}

.footer-title {
    position: relative;

    color: #fff;

    font-size: 13px;
    font-weight: 800;

    padding-bottom: 14px;
    margin-bottom: 18px;
}

.footer-title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 30px;
    height: 2px;

    background: var(--accent);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column a {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--text-muted);

    font-size: 12px;

    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 23px 0;

    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   16. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .policy-layout {
        grid-template-columns: 230px minmax(0, 1fr);

        gap: 30px;
    }

    .footer-grid {
        gap: 30px;
    }

}


/* =========================================================
   17. RESPONSIVE — TOC
   ========================================================= */

@media (max-width: 980px) {

    .policy-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .policy-sidebar {
        position: relative;
        top: auto;

        max-height: none;

        padding: 18px 22px;

        overflow: visible;
    }

    .toc-header {
        margin-bottom: 0;
        padding-bottom: 0;

        border-bottom: none;
    }

    .toc-toggle {
        display: inline-flex;

        align-items: center;
        justify-content: center;
    }

    .toc-nav {
        margin-top: 15px;

        display: flex;
    }

    .policy-sidebar.is-collapsed .toc-nav {
        display: none;
    }

}


/* =========================================================
   18. RESPONSIVE — MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 820px) {

    .header-inner {
        width: calc(100% - 36px);
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;

        top: var(--header-height);
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 12px 22px 20px;

        background: rgba(4, 6, 10, 0.98);

        border-bottom: 1px solid var(--border);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 5px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.05);

        font-size: 13px;
    }

    .site-nav a:last-child {
        border-bottom: none;
    }

    .site-nav a::after {
        display: none;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   19. RESPONSIVE — SMALL TABLETS
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 36px);
    }

    .policy-section {
        padding: 45px 0 65px;
    }

    .policy-hero {
        padding: 75px 0 65px;
    }

    .policy-card {
        padding: 25px 21px;

        border-radius: 12px;
    }

    .policy-card h2 {
        font-size: 19px;
        gap: 11px;
    }

    .section-number {
        width: 34px;
        height: 34px;

        font-size: 11px;
    }

    .division-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 35px;
    }

}


/* =========================================================
   20. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 480px) {

    :root {
        --header-height: 68px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .policy-hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-meta {
        font-size: 10px;
    }

    .policy-card {
        padding: 22px 17px;
    }

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

    .policy-card p {
        font-size: 13px;
    }

    .policy-card li {
        font-size: 12px;
    }

    .contact-card {
        padding: 20px 16px;
    }

    .contact-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

}


/* =========================================================
   21. NO JAVASCRIPT FALLBACK
   ========================================================= */

.no-js .nav-toggle {
    display: none;
}

.no-js .site-nav {
    display: flex;
}

.no-js .toc-toggle {
    display: none;
}


/* =========================================================
   22. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   23. PRINT STYLES
   ========================================================= */

@media print {

    body {
        background: #fff;
        color: #111;
    }

    .site-header,
    .site-footer,
    .policy-sidebar,
    .back-link {
        display: none !important;
    }

    .policy-hero {
        padding: 25px 0;

        background: #fff;
        border-bottom: 1px solid #ccc;
    }

    .policy-hero h1,
    .hero-description,
    .hero-meta {
        color: #111;
    }

    .policy-layout {
        display: block;
    }

    .policy-card {
        background: #fff;

        border: 1px solid #ddd;

        break-inside: avoid;
    }

    .policy-card h2,
    .policy-card h3,
    .policy-card p,
    .policy-card li,
    .contact-value {
        color: #111;
    }

    .division-item,
    .contact-card,
    .retention {
        background: #fff;
    }

    .policy-note {
        background: #f5f5f5;
        color: #111;
    }

    a {
        color: #111;
        text-decoration: none;
    }

}