﻿﻿﻿﻿*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #07101F;
    --bg-surface: #0C1829;
    --clr-surface: rgba(255, 255, 255, 0.03);
    --clr-border: rgba(201, 168, 76, 0.20);
    --clr-border-dim: rgba(255, 255, 255, 0.07);
    --clr-gold: #C9A84C;
    --clr-gold-light: #E2C97E;
    --clr-gold-dim: rgba(201, 168, 76, 0.10);
    --clr-white: #FFFFFF;
    --clr-heading: #FFFFFF;
    --clr-body: #C8D4E0;
    --clr-body-soft: #9BAABC;
    --clr-muted: #5A6E82;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 58px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--clr-body);
    line-height: 1.75;
    min-height: 100vh;
    padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 8% 8%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 55% 70% at 92% 90%, rgba(20, 60, 150, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(7, 16, 31, 0.88);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.50), transparent);
    opacity: 0.5;
}

.nav-shell {
    position: relative;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--clr-white);
    text-decoration: none;
}

.nav-brand em {
    font-style: normal;
    color: var(--clr-gold);
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    color: var(--clr-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.20);
    transition: all var(--transition);
}

.nav-back:hover {
    color: var(--clr-gold-light);
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.40);
}

.nav-back svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .nav-shell {
        padding: 0 18px;
    }

    .nav-brand {
        font-size: 15px;
    }

    .nav-back {
        padding: 7px 13px;
        font-size: 12.5px;
    }

    .nav-back-text {
        display: none;
    }
}

.page-hero {
    padding: 64px 0 48px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--clr-border-dim);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 36px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--clr-gold);
    padding: 5px 16px;
    border: 1px solid rgba(201, 168, 76, 0.30);
    border-radius: 50px;
    margin-bottom: 22px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--clr-heading);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--clr-gold-light);
    font-weight: 700;
}

.hero-rule {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--clr-gold), transparent);
    margin-bottom: 26px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--clr-muted);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: var(--clr-gold);
    fill: none;
    stroke-width: 1.8;
}

.hero-meta-item strong {
    color: var(--clr-body);
    font-weight: 600;
}

.hero-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--clr-body);
    max-width: 760px;
}

.hero-intro a {
    color: var(--clr-gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.40);
    transition: all var(--transition);
}

.hero-intro a:hover {
    color: var(--clr-gold);
    border-bottom-color: var(--clr-gold);
}

.doc-section {
    padding: 56px 0 80px;
    position: relative;
    z-index: 1;
}

.doc-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: flex-start;
}

.doc-toc {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    max-height: calc(100vh - var(--nav-h) - 60px);
    overflow-y: auto;
    padding-right: 8px;
}

.doc-toc::-webkit-scrollbar {
    width: 4px;
}

.doc-toc::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.20);
    border-radius: 2px;
}

.toc-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--clr-gold);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-border-dim);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--clr-body-soft);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: all var(--transition);
}

.toc-list a:hover {
    color: var(--clr-body);
    background: rgba(201, 168, 76, 0.04);
    border-left-color: rgba(201, 168, 76, 0.30);
}

.toc-list a.active {
    color: var(--clr-gold-light);
    background: rgba(201, 168, 76, 0.06);
    border-left-color: var(--clr-gold);
    font-weight: 500;
}

.toc-divider {
    margin: 14px 0 8px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-muted);
}

.doc-article {
    max-width: 760px;
    min-width: 0;
}

.doc-article h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--clr-heading);
    margin: 56px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--clr-border-dim);
    scroll-margin-top: calc(var(--nav-h) + 24px);
    position: relative;
}

.doc-article h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: var(--clr-gold);
}

.doc-article h2:first-child {
    margin-top: 0;
}

.doc-article h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--clr-heading);
    margin: 32px 0 12px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.doc-article h4 {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--clr-gold-light);
    margin: 22px 0 8px;
    letter-spacing: 0.02em;
}

.doc-article p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--clr-body);
    margin-bottom: 16px;
}

.doc-article strong {
    color: var(--clr-heading);
    font-weight: 600;
}

.doc-article a {
    color: var(--clr-gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.40);
    transition: all var(--transition);
}

.doc-article a:hover {
    color: var(--clr-gold);
    border-bottom-color: var(--clr-gold);
}

.doc-article ul,
.doc-article ol {
    margin: 14px 0 22px;
    padding-left: 22px;
}

.doc-article ul li,
.doc-article ol li {
    font-size: 15px;
    line-height: 1.85;
    color: var(--clr-body);
    margin-bottom: 8px;
    padding-left: 6px;
}

.doc-article ul li::marker {
    color: var(--clr-gold);
}

.doc-article ol li::marker {
    color: var(--clr-gold);
    font-weight: 600;
}

.doc-callout {
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.20);
    border-left: 3px solid var(--clr-gold);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--clr-body);
}

.doc-callout strong {
    display: block;
    color: var(--clr-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.annex-block {
    background: linear-gradient(138deg, rgba(201, 168, 76, 0.04) 0%, rgba(20, 40, 100, 0.04) 100%);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 32px 30px;
    margin: 28px 0;
}

.annex-block h3:first-child {
    margin-top: 0;
}

.doc-callout.warning {
    background: rgba(232, 124, 124, 0.05);
    border-color: rgba(232, 124, 124, 0.30);
    border-left-color: #E89494;
}

.doc-callout.warning strong {
    color: #E89494;
}

.doc-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border-dim);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 540px;
}

.doc-table th,
.doc-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--clr-border-dim);
    line-height: 1.6;
    vertical-align: top;
}

.doc-table th {
    background: rgba(201, 168, 76, 0.06);
    color: var(--clr-gold-light);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-table td {
    color: var(--clr-body);
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.severity-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
}

.severity-badge.critical {
    background: rgba(232, 80, 80, 0.10);
    color: #FF7373;
    border: 1px solid rgba(232, 80, 80, 0.40);
}

.severity-badge.high {
    background: rgba(232, 124, 124, 0.08);
    color: #E89494;
    border: 1px solid rgba(232, 124, 124, 0.30);
}

.severity-badge.medium {
    background: rgba(201, 168, 76, 0.10);
    color: var(--clr-gold-light);
    border: 1px solid rgba(201, 168, 76, 0.30);
}

.severity-badge.low {
    background: rgba(125, 167, 230, 0.10);
    color: #7DA7E6;
    border: 1px solid rgba(125, 167, 230, 0.30);
}

.scope-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
}

.scope-badge.eu {
    background: rgba(45, 119, 234, 0.10);
    color: #6FA9FF;
    border: 1px solid rgba(45, 119, 234, 0.30);
}

.scope-badge.uk {
    background: rgba(180, 60, 60, 0.10);
    color: #E89494;
    border: 1px solid rgba(180, 60, 60, 0.30);
}

.scope-badge.us {
    background: rgba(108, 224, 158, 0.10);
    color: #6CE09E;
    border: 1px solid rgba(108, 224, 158, 0.30);
}

.scope-badge.global {
    background: rgba(201, 168, 76, 0.10);
    color: var(--clr-gold-light);
    border: 1px solid rgba(201, 168, 76, 0.30);
}

.doc-contact-box {
    margin-top: 56px;
    padding: 28px 30px;
    background: linear-gradient(138deg, rgba(201, 168, 76, 0.04) 0%, rgba(20, 40, 100, 0.06) 100%);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
}

.doc-contact-box h3 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--clr-heading);
}

.doc-contact-box p {
    font-size: 14px;
    color: var(--clr-body);
    margin: 0;
}

.report-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(232, 124, 124, 0.08);
    border: 1px solid rgba(232, 124, 124, 0.50);
    color: #FAB5B5;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.report-cta:hover {
    background: rgba(232, 124, 124, 0.20);
    color: #FFD0D0;
    border-color: #E89494;
    transform: translateY(-1px);
}

.report-cta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sign-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(201, 168, 76, 0.10);
    border: 1px solid var(--clr-gold);
    color: var(--clr-gold-light);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.sign-cta:hover {
    background: var(--clr-gold);
    color: var(--bg-base);
    transform: translateY(-1px);
}

.sign-cta svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: rgba(12, 24, 41, 0.92);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    color: var(--clr-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--clr-gold);
    color: var(--bg-base);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer {
    border-top: 1px solid var(--clr-border-dim);
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 12.5px;
    color: var(--clr-muted);
    letter-spacing: 0.04em;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12px;
}

.footer-links a {
    color: var(--clr-body-soft);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--clr-gold-light);
}

.footer-links span {
    color: var(--clr-muted);
    opacity: 0.4;
}

@media (max-width: 980px) {
    .doc-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doc-toc {
        position: static;
        max-height: none;
        padding: 18px 20px;
        background: var(--clr-surface);
        border: 1px solid var(--clr-border-dim);
        border-radius: var(--radius-md);
    }

    .toc-label {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    .page-hero {
        padding: 44px 0 32px;
    }

    .doc-section {
        padding: 40px 0 60px;
    }

    .doc-article h2 {
        font-size: 22px;
        margin: 40px 0 16px;
    }

    .doc-article h3 {
        font-size: 16px;
        margin: 26px 0 10px;
    }

    .doc-article p,
    .doc-article ul li,
    .doc-article ol li {
        font-size: 14.5px;
    }

    .doc-contact-box {
        padding: 22px 20px;
    }

    .annex-block {
        padding: 24px 20px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media print {
    body {
        background: #FFF;
        color: #000;
        padding-top: 0;
    }

    body::before {
        display: none;
    }

    .top-nav,
    .doc-toc,
    .back-to-top,
    .site-footer {
        display: none;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .doc-article {
        max-width: 100%;
    }

    .doc-article h2,
    .doc-article h3,
    .doc-article h4,
    .doc-article p,
    .doc-article li,
    .doc-article strong {
        color: #000 !important;
    }

    .doc-article h2 {
        border-bottom: 1px solid #000;
    }

    .hero-title,
    .hero-eyebrow,
    .hero-meta-item {
        color: #000 !important;
    }

    .doc-callout {
        border: 1px solid #000;
        background: #f5f5f5;
    }

    .doc-table th {
        background: #f0f0f0;
        color: #000 !important;
    }

    .severity-badge {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .scope-badge {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .report-cta {
        display: none;
    }

    .sign-cta {
        display: none;
    }
}

.doc-table code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--clr-gold-light);
    background: rgba(201, 168, 76, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.manage-cookies-btn {
    display: none;
}