/* =========================================
   Easy Dine Privacy Policy
   ========================================= */

:root {
    --background: #fafaf8;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #667085;
    --border: #e5e7eb;
    --primary: #e76f51;
    --primary-dark: #c9563c;
    --green: #2f855a;
    --green-bg: #edf8f1;
    --highlight-bg: #fff7ed;
    --max-width: 1200px;
}


/* =========================================
   Reset
   ========================================= */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--background);
    color: var(--text);

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

    line-height: 1.7;
}


/* =========================================
   Global
   ========================================= */

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

    margin: 0 auto;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================================
   Header
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.95);

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

    backdrop-filter: blur(10px);
}

.header-content {
    min-height: 68px;

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

    gap: 30px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.logo:hover {
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;

    font-size: 0.9rem;
}

nav a {
    color: var(--muted);
}

nav a:hover {
    color: var(--primary);
}


/* =========================================
   Hero
   ========================================= */

.hero {
    padding: 90px 0 75px;

    background:
        linear-gradient(
            135deg,
            #fff8f3 0%,
            #fff 55%,
            #f8faf9 100%
        );

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

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-size: clamp(2.5rem, 6vw, 4.5rem);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 700px;

    margin: 25px 0 15px;

    color: var(--muted);

    font-size: 1.2rem;
}

.updated {
    color: var(--muted);

    font-size: 0.9rem;
}


/* =========================================
   Content Layout
   ========================================= */

.content-layout {
    display: grid;

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

    gap: 70px;

    padding-top: 70px;
    padding-bottom: 100px;
}


/* =========================================
   Sidebar
   ========================================= */

.sidebar {
    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 100px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.sidebar h3 {
    margin: 0 0 12px;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: var(--muted);
}

.sidebar a {
    padding: 5px 0;

    color: var(--muted);

    font-size: 0.85rem;

    line-height: 1.4;
}

.sidebar a:hover {
    color: var(--primary);
    text-decoration: none;
}


/* =========================================
   Policy
   ========================================= */

.policy {
    min-width: 0;

    background: var(--surface);

    padding: clamp(30px, 5vw, 65px);

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

    border-radius: 20px;
}

.policy section {
    margin-top: 65px;

    padding-top: 10px;
}

.policy section:first-of-type {
    margin-top: 45px;
}

.policy h2 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 1.75rem;

    line-height: 1.3;

    letter-spacing: -0.02em;
}

.policy h3 {
    margin-top: 35px;

    font-size: 1.1rem;
}

.policy p {
    margin: 0 0 20px;

    color: #3f4a56;
}

.policy ul {
    margin: 20px 0;
    padding-left: 25px;
}

.policy li {
    margin-bottom: 12px;

    color: #3f4a56;
}


/* =========================================
   Highlight Boxes
   ========================================= */

.highlight {
    margin: 30px 0;
    padding: 20px 24px;

    background: var(--highlight-bg);

    border-left: 4px solid var(--primary);

    border-radius: 8px;
}

.highlight.success {
    background: var(--green-bg);

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


/* =========================================
   Contact Box
   ========================================= */

.contact-box {
    margin-top: 30px;
    padding: 22px 25px;

    background: #f8fafc;

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

    border-radius: 12px;
}

.contact-box p {
    margin: 5px 0 0;
}


/* =========================================
   Table
   ========================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    margin: 30px 0;
}

table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;

    font-size: 0.9rem;
}

th,
td {
    padding: 15px;

    text-align: left;

    vertical-align: top;

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

th {
    background: #f8fafc;

    color: var(--text);

    font-weight: 700;
}

td {
    color: #4b5563;
}

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


/* =========================================
   Contact Card
   ========================================= */

.contact-card {
    margin-top: 25px;

    padding: 30px;

    background: #fff8f3;

    border: 1px solid #f3ddd2;

    border-radius: 14px;
}

.contact-card h3 {
    margin: 0 0 5px;

    font-size: 1.2rem;
}

.contact-card p {
    margin-bottom: 10px;
}


/* =========================================
   Footer
   ========================================= */

footer {
    background: #1f2933;

    color: white;
}

.footer-content {
    min-height: 130px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-content p {
    margin: 5px 0;

    color: #cbd5e1;

    font-size: 0.9rem;
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 850px) {

    nav {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;

        gap: 30px;

        padding-top: 35px;
    }

    .sidebar-inner {
        position: static;

        padding: 20px;

        background: var(--surface);

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

        border-radius: 14px;

        display: grid;

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

        gap: 4px 20px;
    }

    .sidebar h3 {
        grid-column: 1 / -1;
    }

    .policy {
        padding: 30px 22px;
    }

    .hero {
        padding: 65px 0 50px;
    }
}


@media (max-width: 550px) {

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

    .sidebar-inner {
        grid-template-columns: 1fr;
    }

    .policy {
        border-radius: 14px;
    }

    .footer-content {
        padding: 25px 0;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;
    }

}

/* =========================================
   Legal Warning
   ========================================= */

.legal-warning {
    margin: 30px 0;

    padding: 25px;

    background: #f8f8f8;

    border: 1px solid #dedede;

    border-radius: 10px;
}

.legal-warning p {
    margin-bottom: 18px;

    color: #303030;

    font-size: 0.92rem;
}

.legal-warning p:last-child {
    margin-bottom: 0;
}
