/* ============================================================
   LOCKBYTES PRIVACY POLICY
   Clean, readable, responsive policy design
   ============================================================ */


/* ============================================================
   ROOT VARIABLES

   Keep colors and sizing here so the design can be changed
   without editing the HTML.
   ============================================================ */

:root {

    --bg: #f7f8fa;
    --surface: #ffffff;

    --text: #20242a;
    --text-secondary: #4d5560;
    --text-muted: #6b7280;

    --border: #e2e5e9;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;

    --warning-bg: #fff8e6;
    --warning-border: #f0d48a;

    --important-bg: #f3f6ff;
    --important-border: #b9c9f5;

    --max-width: 900px;

    --radius: 10px;

    --font:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--bg);

    color: #1B2B45;

    font-family: var(--font);

    font-size: 16px;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.policy-container {

    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
    padding: 48px 28px 70px;
    border: solid 1px var(--border);
    border-radius: var(--radius);
}

/* ============================================================
   HEADER
   ============================================================ */

.policy-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 30px;

    margin-bottom: 38px;

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


.brand {

    display: flex;

    align-items: center;

    gap: 14px;
}


.brand-mark {

    width: 44px;
    height: 44px;

    display: flex;

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

    border-radius: 10px;

    background: #1B2B45;

    color: white;

    font-size: 21px;

    font-weight: 700;
}


.brand h1 {

    margin: 0;

    font-size: 20px;

    line-height: 1.2;
}


.brand p {

    margin: 3px 0 0;

    color: var(--text-muted);

    font-size: 14px;
}


.policy-meta {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    color: var(--text-muted);

    font-size: 13px;
}


.policy-meta strong {

    color: var(--text-secondary);

    font-weight: 500;

    margin-top: 2px;
}


/* ============================================================
   INTRODUCTION
   ============================================================ */

.intro {

    margin-bottom: 40px;
}


.intro h2 {

    margin: 0 0 18px;

    font-size: 30px;

    line-height: 1.25;

    letter-spacing: -0.3px;
}


.intro p {

    max-width: 760px;

    margin: 0 0 14px;

    color: var(--text-secondary);
}


/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.toc {

    background: var(--surface);

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

    border-radius: var(--radius);

    padding: 24px 28px;

    margin-bottom: 52px;
}


.toc h2 {

    margin: 0 0 14px;

    font-size: 18px;

    line-height: 1.4;
}


.toc ol {

    margin: 0;

    padding-left: 24px;
}


.toc li {

    margin: 5px 0;
}


.toc a {

    color: var(--accent);

    text-decoration: none;
}


.toc a:hover {

    color: var(--accent-hover);

    text-decoration: underline;
}


/* ============================================================
   POLICY SECTION
   ============================================================ */

.policy-section {

    padding-top: 18px;

    margin-bottom: 52px;

    scroll-margin-top: 25px;
}


.policy-section h2 {

    margin: 0 0 18px;

    font-size: 23px;

    line-height: 1.35;

    letter-spacing: -0.15px;
}


.policy-section h3 {

    margin: 28px 0 10px;

    font-size: 18px;

    line-height: 1.4;
}


.policy-section p {

    margin: 0 0 16px;

    color: var(--text-secondary);
}


.policy-section ul {

    margin: 12px 0 20px;

    padding-left: 26px;

    color: var(--text-secondary);
}


.policy-section li {

    margin: 5px 0;
}


/* ============================================================
   LINKS
   ============================================================ */

.policy-section a {

    color: var(--accent);

    text-decoration: none;
}


.policy-section a:hover {

    color: var(--accent-hover);

    text-decoration: underline;
}


/* ============================================================
   IMPORTANT NOTICES
   ============================================================ */

.notice {

    padding: 20px 22px;

    margin: 24px 0;

    border-radius: var(--radius);

    border: 1px solid;
}


.notice p:last-child {

    margin-bottom: 0;
}


.notice-warning {

    background: var(--warning-bg);

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


.notice-important {

    background: var(--important-bg);

    border-color: var(--important-border);

    padding: 26px;
}


.notice-important h3 {

    margin-top: 0;

    margin-bottom: 14px;

    font-size: 19px;
}


/* ============================================================
   DEVELOPER CARD
   ============================================================ */

.developer-card {

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 20px 22px;

    background: var(--surface);

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

    border-radius: var(--radius);

    margin-top: 18px;
}


.developer-card strong {

    font-size: 17px;

    color: var(--text);
}


.developer-card span {

    color: var(--text-secondary);

    font-size: 15px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.policy-footer {

    margin-top: 70px;

    padding-top: 25px;

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

    color: var(--text-muted);

    font-size: 13px;
}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;
}


.footer-brand strong {

    color: var(--text-secondary);

    font-weight: 600;
}


.policy-footer p {

    margin: 3px 0;
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 650px) {

    .policy-container {

        width: min(
            calc(100% - 28px),
            var(--max-width)
        );

        padding-top: 28px;

        padding-bottom: 45px;
    }


    .policy-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        margin-bottom: 30px;
    }


    .policy-meta {

        align-items: flex-start;
    }


    .intro h2 {

        font-size: 26px;
    }


    .policy-section h2 {

        font-size: 21px;
    }


    .toc {

        padding: 20px;

        margin-bottom: 40px;
    }


    .policy-section {

        margin-bottom: 42px;
    }


    body {

        font-size: 15.5px;

        line-height: 1.65;
    }
}


/* ============================================================
   PRINT
   ============================================================ */

@media print {

    body {

        background: white;

        color: black;
    }


    .policy-container {

        width: 100%;

        max-width: none;

        padding: 0;
    }


    .toc {

        border: 1px solid #ccc;

        break-inside: avoid;
    }


    .notice {

        break-inside: avoid;
    }


    .policy-section {

        break-inside: avoid;
    }


    a {

        color: black;

        text-decoration: none;
    }
}