/* --- Legal Pages (Terms / Cookie Policy) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f5f2;
    color: #111;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* Nav */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(248, 245, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.legal-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.legal-back {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

.legal-back:hover {
    color: #111;
}

/* Main */
.legal-main {
    padding-top: clamp(6.5rem, 10vw, 8.5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page title block */
.legal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #111;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.legal-date {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.38);
    margin-bottom: 4rem;
    letter-spacing: 0.01em;
}

/* Preamble / intro */
.legal-intro {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.legal-intro p {
    font-size: 1.075rem;
    color: #444;
    line-height: 1.8;
}

/* Sections */
.legal-section {
    padding-top: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.legal-section:last-of-type {
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #111;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.legal-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.legal-section p {
    font-size: 0.975rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.legal-section ul,
.legal-section ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.legal-section ul li,
.legal-section ol li {
    font-size: 0.975rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

/* Cookie table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.legal-table th {
    text-align: left;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #111;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    letter-spacing: 0.02em;
}

.legal-table td {
    padding: 0.7rem 1rem;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
    line-height: 1.6;
}

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

/* Footer bar */
.legal-footer-bar {
    margin-top: clamp(3.5rem, 6vw, 5rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.35);
}

.legal-footer-bar a {
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer-bar a:hover {
    color: #111;
}

@media (max-width: 640px) {
    .legal-nav {
        padding: 1.25rem 1.5rem;
    }

    .legal-main {
        padding-top: 7rem;
    }

    .legal-content {
        padding: 0 1.25rem;
    }

    .legal-table {
        font-size: 0.78rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.6rem 0.6rem;
    }

    .legal-footer-bar {
        flex-direction: column;
        text-align: center;
    }
}
