/*
Responsive scale policy
-----------------------
Desktop / standard monitor: 769px and wider (base rules)
Mobile: 768px and narrower (single override block)
There are intentionally no separate tablet or small-phone breakpoints.
*/

:root {
    --navy-950: #00142b;
    --navy-900: #031d3a;
    --navy-850: #062746;
    --navy-800: #0a3158;
    --orange: #f04b0d;
    --orange-dark: #d93e00;
    --ink: #071936;
    --muted: #5d6878;
    --line: #dce3ea;
    --surface: #ffffff;
    --page: #f4f7fa;
    --page-width: 1380px;
    --header-height: 86px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 122px;
}

body {
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 92% 7%, rgba(8, 71, 119, 0.08), transparent 26%),
        var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body::before {
    height: 30px;
    padding: 0 max(24px, calc((100% - var(--page-width)) / 2));
    display: flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(90deg, #001b39, #00132a);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.utility-bar {
    padding: 0 max(24px, calc((100% - var(--page-width)) / 2));
    background: linear-gradient(90deg, #001b39, #00132a);
    color: #fff;
    font-size: 12px;
}

.utility-bar__inner {
    width: 100%;
    min-height: 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.utility-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.utility-links a {
    text-decoration: none;
    padding: 0 13px;
    border-right: 1px solid rgba(255, 255, 255, .55);
}

.utility-links a:last-child {
    padding-right: 0;
    border-right: 0;
}

.utility-links a:hover {
    color: #ffb292;
}

/* =========================================================
   Header and navigation
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    padding: 0 max(24px, calc((100% - var(--page-width)) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e3e8ee;
    box-shadow: 0 4px 16px rgba(0, 20, 48, 0.08);
    backdrop-filter: blur(10px);
}

.logo {
    min-width: 315px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #08183e;
    text-decoration: none;
}

.brand__name {
    color: #08183e;
    font-size: 25px;
    font-weight: 800;
    line-height: .92;
    letter-spacing: .4px;
}

.logo-icon {
    width: 112px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header > nav {
    margin-left: auto;
}

header > nav > ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

header > nav > ul > li {
    position: relative;
}

header > nav > ul > li > a {
    position: relative;
    min-height: var(--header-height);
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

header > nav > ul > li > a:hover,
header > nav > ul > li.dropdown.active > a {
    color: var(--orange);
}

header > nav > ul > li:nth-last-child(2) > a::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 3px;
    background: var(--orange);
}

header > nav > ul > li:last-child > a {
    min-height: 42px;
    margin-left: 8px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(180deg, #f65b11, #e74500);
    border-radius: 4px;
    box-shadow: 0 5px 12px rgba(228, 68, 0, 0.2);
}

header > nav > ul > li:last-child > a:hover {
    color: #ffffff;
    background: var(--orange-dark);
}

.dropdown-toggle::after {
    content: "▾";
    margin-left: 7px;
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    width: 245px;
    padding: 9px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    background: #ffffff;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(0, 20, 48, 0.18);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--orange);
    background: #f2f5f8;
}

/* =========================================================
   PP hero
   ========================================================= */
.policy-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 10vw, 130px) 6vw clamp(66px, 8vw, 100px);
    background:
        radial-gradient(circle at 88% 18%, rgba(246, 91, 17, 0.18), transparent 29%),
        linear-gradient(125deg, #20272d 0%, #303a43 58%, #20272d 100%);
    color: #ffffff;
}

.policy-hero::before,
.policy-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.policy-hero::before {
    width: 410px;
    height: 410px;
    right: -120px;
    top: -190px;
}

.policy-hero::after {
    width: 240px;
    height: 240px;
    right: 100px;
    bottom: -170px;
}

.policy-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 12px;
    color: #ff9c6a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.last-updated {
    display: inline-flex;
    margin: 24px 0 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f6f7f8;
    font-size: 0.88rem;
}

.hero-intro {
    max-width: 820px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-intro a {
    color: #ff9b67;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 850px);
    gap: clamp(28px, 5vw, 72px);
    width: min(1220px, 88vw);
    margin: 0 auto;
    padding: clamp(60px, 8vw, 105px) 0;
    align-items: start;
}

.policy-index {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    max-height: calc(100vh - var(--header-height) - 56px);
    overflow-y: auto;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.06);
}

.policy-index > p {
    margin: 0 0 13px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.policy-index nav {
    display: grid;
    gap: 2px;
}

.policy-index a {
    display: block;
    padding: 8px 10px;
    border-left: 2px solid transparent;
    color: #68737c;
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.policy-index a:hover,
.policy-index a:focus-visible,
.policy-index a.active {
    color: var(--ae-orange-dark);
    border-left-color: var(--ae-orange);
    background: rgba(246, 91, 17, 0.06);
    transform: translateX(3px);
    outline: none;
}

.policy-content {
    min-width: 0;
}

.policy-card {
    position: relative;
    margin-bottom: 22px;
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(31, 41, 51, 0.045);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.policy-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ae-orange), #ff9a67);
    transform: scaleY(0.32);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.policy-card:hover,
.policy-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(246, 91, 17, 0.32);
    box-shadow: var(--shadow);
}

.policy-card:hover::before,
.policy-card:focus-within::before {
    transform: scaleY(1);
}

.section-number {
    position: absolute;
    right: 24px;
    top: 18px;
    color: rgba(246, 91, 17, 0.12);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.policy-card h2 {
    position: relative;
    max-width: 78%;
    margin: 0 0 20px;
    color: #26313a;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.18;
}

.policy-card p {
    margin: 0 0 15px;
    color: var(--muted);
}

.policy-card p:last-child {
    margin-bottom: 0;
}

.policy-card ul,
.policy-card ol {
    margin: 8px 0 20px;
    padding-left: 1.35rem;
    color: var(--muted);
}

.policy-card li {
    margin: 7px 0;
    padding-left: 6px;
}

.policy-card li::marker {
    color: var(--ae-orange);
    font-weight: 700;
}

.policy-card a {
    color: var(--ae-orange-dark);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-card {
    background: linear-gradient(145deg, #ffffff, #fff9f5);
}

.contact-card address {
    display: grid;
    gap: 8px;
    padding: 20px;
    background: rgba(246, 91, 17, 0.055);
    border: 1px solid rgba(246, 91, 17, 0.16);
    border-radius: 12px;
    color: var(--muted);
    font-style: normal;
}

.contact-card address strong {
    color: var(--ink);
}

.accept-policy {
    margin-top: 34px;
    padding: clamp(30px, 5vw, 48px);
    text-align: center;
    background: #252d34;
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: #ffffff;
}

.accept-policy p {
    max-width: 630px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.77);
}

.policy-copyright {
    margin: 28px 0 0;
    color: #7d8790;
    font-size: 0.82rem;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    padding: 54px 30px 24px;
    color: #dce7f2;
    background: linear-gradient(135deg, #062746, #00142b 76%);
    border-top: 4px solid var(--orange);
}

.footer-content {
    width: min(var(--page-width), 100%);
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 34px;
}

.footer-logo-section,
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.footer-section h4 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
}

.footer-section a {
    color: #b9c9d9;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #ff9a70;
}

.footer-bottom {
    width: min(var(--page-width), 100%);
    margin: 0 auto;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-copyright,
.footer-description {
    margin: 0;
    color: #9fb1c3;
    font-size: 12px;
}

.footer-description {
    max-width: 680px;
    text-align: right;
}

/* =========================================================
   Responsive
   ========================================================= */

/* =========================================================
   Unified mobile scale
   ========================================================= */
@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .site-header {
        padding: 0 5vw;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 0 5vw;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 25px rgba(31, 41, 51, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav > ul {
        display: block;
        padding: 14px 0 20px;
    }

    .main-nav > ul > li > a,
    .dropdown-toggle {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
    }

    .main-nav > ul > li > a::after,
    .dropdown-toggle::after {
        bottom: 7px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 4px 0 10px 13px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .policy-hero {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .policy-layout {
        width: 90vw;
    }

    .policy-index nav {
        grid-template-columns: 1fr;
    }

    .policy-card h2 {
        max-width: 86%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        width: 90vw;
    }

    .footer-logo-section {
        grid-column: auto;
    }

    .footer-bottom {
        width: 90vw;
    }
}

@media (hover: none) {
    .policy-card:active {
        transform: scale(0.992);
        border-color: rgba(246, 91, 17, 0.36);
    }

    .accept-button:active {
        background: var(--ae-orange-dark);
    }
}
