:root {
    --orange: #f26a21;
    --orange-dark: #c94e0c;
    --orange-soft: #fff5ee;
    --charcoal: #2f3437;
    --muted: #60676c;
    --line: #e1e4e7;
    --surface: #f7f8f9;
    --white: #ffffff;
    --shadow: 0 8px 26px rgba(31, 35, 38, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--charcoal);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: var(--orange-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--orange);
}

a:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.35);
    outline-offset: 3px;
    border-radius: 3px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.top-nav a {
    display: inline-block;
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--charcoal);
    font-weight: 650;
    text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.top-nav .login-link {
    background: var(--charcoal);
    color: var(--white);
    padding-inline: 18px;
}

.top-nav .login-link:hover {
    background: var(--orange-dark);
    color: var(--white);
}

.close-policy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 19px;
    border: 0;
    border-radius: 8px;
    background: var(--charcoal);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.close-policy-button:hover {
    background: var(--orange-dark);
}

.close-policy-button:focus-visible {
    outline: 3px solid rgba(242, 106, 33, 0.4);
    outline-offset: 3px;
}

.close-area {
    padding-top: 24px;
    text-align: center;
}

.page-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 42px auto 56px;
}

.page-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.policy-hero {
    padding: 34px 42px;
    background: linear-gradient(135deg, var(--orange-soft), #ffffff 72%);
    border-left: 7px solid var(--orange);
}

.policy-hero h1 {
    margin: 0 0 8px;
    color: var(--charcoal);
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.2;
}

.policy-hero p {
    margin: 5px 0 0;
    color: var(--muted);
}

.policy-content {
    padding: 38px 42px 46px;
}

.policy-content h2 {
    margin: 34px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    color: var(--charcoal);
    font-size: 1.35rem;
    line-height: 1.35;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin: 0 0 15px;
}

.policy-content ul {
    margin: 8px 0 20px;
    padding-left: 24px;
}

.policy-content li {
    margin-bottom: 7px;
}

.notice {
    margin: 0 0 28px;
    padding: 18px 21px;
    background: var(--orange-soft);
    border: 1px solid #f6cdb5;
    border-radius: 9px;
}

.company-details {
    margin: 18px 0 28px;
    padding: 20px 23px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
}

.company-details p {
    margin: 4px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.policy-tile {
    display: flex;
    min-height: 210px;
    padding: 24px;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--charcoal);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(31, 35, 38, 0.05);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.policy-tile:hover {
    transform: translateY(-3px);
    border-color: #f3ad83;
    color: var(--charcoal);
    box-shadow: var(--shadow);
}

.policy-tile h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.35;
}

.policy-tile p {
    margin: 0 0 18px;
    color: var(--muted);
}

.policy-tile span {
    margin-top: auto;
    color: var(--orange-dark);
    font-weight: 700;
}

.site-footer {
    background: #292d30;
    color: #e6e8e9;
}

.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p {
    margin: 0 0 5px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 9px 17px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
}

.site-footer .close-policy-button {
    background: var(--orange);
}

.site-footer .close-policy-button:hover {
    background: var(--orange-dark);
}

@media (max-width: 820px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner {
        padding: 18px 0;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-shell,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .page-shell {
        margin-top: 20px;
    }

    .policy-hero,
    .policy-content {
        padding: 25px 22px;
    }

    .top-nav a {
        padding: 8px 9px;
    }
}

@media print {
    .site-header,
    .site-footer {
        display: none;
    }

    body,
    .page-card {
        background: #ffffff;
        box-shadow: none;
    }

    .page-shell {
        width: 100%;
        margin: 0;
    }
}
