:root {
    --clr-bg: #f1ece3;
    --clr-surface: #ffffff;
    --clr-text: #20242a;
    --clr-text-muted: #5c626a;
    --clr-border: #e2dbcd;
    --clr-accent: #ff9600;
    --clr-accent-dark: #d97400;
    --nav-h: 84px;
    --ff-heading: 'Poppins', 'Gill Sans', sans-serif;
    --ff-body: 'Inter', 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--ff-body);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-h);
    background-color: var(--clr-bg);
    background-image: none;
    background-attachment: fixed;
    color: var(--clr-text);
    overflow-x: hidden;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--clr-accent-dark);
    font-size: 1rem;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
    width: 100%;
    height: var(--nav-h);
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar a {
    color: var(--clr-text);
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    display: block;
    height: 40px;
    width: auto;
}

.navbar .links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.navbar .links a {
    position: relative;
    font-family: var(--ff-heading);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--clr-text-muted);
    padding-bottom: 6px;
    transition: color 0.2s ease;
}

.navbar .links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--clr-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .links a:hover {
    color: var(--clr-text);
    text-decoration: none;
}

.navbar .links a:hover::after {
    transform: scaleX(1);
}

.navbar .toggle_button {
    color: var(--clr-text);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
}

.action_button {
    background: linear-gradient(135deg, var(--clr-accent), #ff7a00);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: 999px;
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(255, 150, 0, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(255, 150, 0, 0.65);
    color: #fff;
    text-decoration: none;
}

.action_button:active {
    transform: translateY(0) scale(0.97);
}

/* FOOTER */
footer {
    flex-shrink: 0;
    width: 100%;
    padding: 1.4rem 0 1.6rem;
    color: var(--clr-text-muted);
    border-top: 1px solid var(--clr-border);
}

.footer {
    width: 80%;
    margin: 0 auto;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer ul li {
    display: inline-block;
    margin: 0 12px;
}

.footer ul li a {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.footer ul li a:hover {
    color: var(--clr-accent-dark);
}

/* DROPDOWN MENU */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: calc(var(--nav-h) - 20px);
    height: 0;
    width: min(280px, calc(100vw - 2rem));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px -15px rgba(20, 20, 20, 0.2);
    opacity: 0;
    transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    z-index: 99;
}

.dropdown_menu.open {
    height: 268px;
    opacity: 1;
}

.dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu li a {
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.dropdown_menu li a:hover {
    color: var(--clr-text);
    text-decoration: none;
}

.dropdown_menu .action_button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MAIN / LEGAL CONTENT */
main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 4rem clamp(1.5rem, 6vw, 6rem) 5rem;
}

.legal-card {
    width: 100%;
    max-width: 780px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 3.2rem);
    box-shadow: 0 20px 50px -25px rgba(20, 16, 10, 0.15);
    overflow-wrap: break-word;
}

.legal-card .eyebrow {
    display: inline-block;
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-accent-dark);
    margin-bottom: 0.7rem;
}

.legal-card h1 {
    font-family: var(--ff-heading);
    font-weight: 300;
    font-size: clamp(1.6rem, 7vw, 2.6rem);
    margin-bottom: 1.8rem;
    color: var(--clr-text);
}

.legal-card h2 {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 1.3rem;
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
    color: var(--clr-text);
    padding-top: 1.6rem;
    border-top: 1px solid var(--clr-border);
}

.legal-card h2:first-of-type {
    padding-top: 0;
    border-top: none;
}

.legal-card h3 {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 1.05rem;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    color: var(--clr-text);
}

.legal-card h4 {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-accent-dark);
}

.legal-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 300;
    color: var(--clr-text-muted);
    margin-bottom: 0.8rem;
}

.legal-card .legal-source {
    margin-top: 2rem;
    font-size: 0.82rem;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .navbar .links,
    .navbar .action_button {
        display: none;
    }

    .navbar .toggle_button {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
}
