.docs-hero .page-hero__inner {
    max-width: 1000px;
    text-align: center;
}

.docs-hero .page-hero__title { max-width: none; margin-inline: auto; }
.docs-hero .page-hero__lead { margin-inline: auto; }

.docs-list-section { padding: 2rem 2rem 6rem; }

.docs-list__note {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 70ch;
}
.docs-list-section__inner { max-width: 900px; margin: 0 auto; }

.docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.doc-row__trigger {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-row__trigger:hover {
    background: rgba(214, 168, 62, 0.08);
    transform: translate3d(0, -2px, 0);
}
.doc-row__trigger:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }

.doc-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.doc-row__text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-row__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
}

.doc-row__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.doc-row__arrow {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}
.doc-row__trigger:hover .doc-row__arrow { transform: translateX(4px); }

@media (min-width: 992px) {
    .service-details.doc-drawer.is-drawer {
        width: min(90vw, 900px);
        height: 86vh;
        border-radius: 20px;
    }

    .service-details.doc-drawer.is-drawer > .service-row__detail {
        display: block;
        padding: 4rem clamp(2rem, 8%, 5rem) 4rem;
    }
}

.document-content {
    margin: 0 auto;
}

.document-content h3 { font-size: 2.2rem; margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.document-content h4 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--color-text); }
.document-content p { margin-bottom: 1.25rem; color: var(--color-text-muted); line-height: 1.7; font-size: 1.05rem; }
.document-content ul, .document-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--color-text-muted); line-height: 1.7; font-size: 1.05rem; }
.document-content li { margin-bottom: 0.5rem; }
.document-content strong { color: var(--color-text); }

.document-download-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: min(50vh, 420px);
}

.download-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
    font-size: 3.4rem;
    line-height: 1;
    background: rgba(47, 122, 78, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(47, 122, 78, 0.15);
}

.document-download-only p {
    max-width: 600px;
}

.download-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    color: var(--color-text-muted);
}

.cookie-provider {
    margin: 1.75rem 0 2.5rem;
    padding: 1.25rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-line);
    border-radius: 14px;
}

.cookie-provider__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.cookie-provider__tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    background: rgba(214, 168, 62, 0.18);
    color: var(--color-accent-deep);
    font-weight: 600;
}

.cookie-provider__tag--required {
    background: rgba(47, 122, 78, 0.14);
    color: var(--color-primary-hover);
}

.cookie-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid var(--color-line);
    background: var(--color-surface);
}

.cookie-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-line);
}

.cookie-table thead th {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    white-space: nowrap;
}

.cookie-table tbody tr:last-child th,
.cookie-table tbody tr:last-child td { border-bottom: none; }

.cookie-table td:first-child {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text);
    white-space: nowrap;
}

.cookie-table td:last-child { white-space: nowrap; color: var(--color-text-muted); }

.document-content h3 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.document-content small { color: var(--color-text-muted); }
.document-content a:not(.btn) { color: var(--color-primary); }

.document-download-only .btn { margin-top: 1.5rem; }

@media (max-width: 991px) {
    .service-details.doc-drawer.is-drawer > .service-row__detail {
        display: block;
        padding: 3.5rem 1.25rem calc(3rem + env(safe-area-inset-bottom, 0px));
    }
    .doc-row__trigger { gap: 1rem; padding: 1rem 1.1rem; }
    .doc-row__icon { width: 48px; height: 48px; font-size: 1.4rem; }
}
.document-download-only .btn.is-pending {
    pointer-events: none;
    opacity: 0.55;
    filter: grayscale(0.35);
    cursor: not-allowed;
}

.document-download-only p { color: var(--color-text-muted); }
.document-download-only a:not(.btn) { color: var(--color-primary); text-underline-offset: 0.2em; }

.download-fallback {
    max-width: 46ch;
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.document-download-only .btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}