/* Shared legal / policy pages — matches MCKA Canteen landing look */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.policy-page {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--stock-text, #0f172a);
    background: var(--stock-bg, #f3f7f5);
    -webkit-font-smoothing: antialiased;
}

.policy-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 8% 0%, rgba(13, 122, 92, 0.1), transparent 55%),
        radial-gradient(ellipse 55% 40% at 100% 10%, rgba(16, 51, 107, 0.07), transparent 50%),
        linear-gradient(180deg, #eef6f2 0%, #f3f7f5 40%, #eef2f7 100%);
}

.policy-header,
.policy-main,
.policy-footer {
    position: relative;
    z-index: 1;
}

.policy-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.policy-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-width: 0;
}

.policy-college-logo {
    height: 52px;
    width: auto;
    max-width: min(280px, 58vw);
    object-fit: contain;
    object-position: left center;
}

.policy-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 122, 92, 0.18);
    background: rgba(255, 255, 255, 0.75);
    color: #0d7a5c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.policy-back:hover {
    background: #fff;
    border-color: rgba(13, 122, 92, 0.35);
}

.policy-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 3rem;
}

.policy-article {
    animation: policyIn 0.45s ease both;
}

.policy-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d7a5c;
}

.policy-article > h1 {
    margin: 0 0 0.45rem;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
}

.policy-updated {
    margin: 0 0 2rem;
    font-size: 0.88rem;
    color: #64748b;
}

.policy-block {
    margin-bottom: 1.75rem;
}

.policy-block h2 {
    margin: 0 0 0.55rem;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.policy-block p {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
}

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

.policy-list {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.7;
}

.policy-list li {
    margin-bottom: 0.4rem;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.policy-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.policy-footer a {
    color: #0d7a5c;
    font-weight: 600;
    text-decoration: none !important;
}

.policy-block a {
    color: #0d7a5c;
    font-weight: 600;
    text-decoration: none !important;
}

.policy-block a:hover {
    text-decoration: underline !important;
}

@keyframes policyIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .policy-college-logo {
        height: 42px;
    }

    .policy-article > h1 {
        font-size: 1.65rem;
    }

    .policy-block p {
        font-size: 0.98rem;
    }
}
