/* AXITAM Public API homepage - visual identity taken from www.axitam.com (css/main.css). */

:root {
    --axitam-navy: #1E3A8A;
    --axitam-blue: #3B82F6;
    --axitam-green: #10B981;
    --axitam-orange: #F97316;
    --gray-dark: #64748B;
    --gray-light: #E2E8F0;
    --text: #1F2937;
    --code-background: #0F172A;
    --code-text: #E2E8F0;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

a { color: var(--axitam-blue); }

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--axitam-navy);
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--gray-dark);
    margin-left: 0.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--axitam-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--axitam-blue); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--gray-light);
}

.lang-switch a {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    color: var(--axitam-navy);
    transition: all 0.3s ease;
}

.lang-switch a.active { background: var(--axitam-navy); color: var(--white); }
.lang-switch a:hover:not(.active) { background: var(--gray-light); }

/* Hero */
.hero {
    min-height: min(92vh, 760px);
    padding: 8rem 2rem 5rem;
    background: linear-gradient(135deg, var(--axitam-navy) 0%, var(--axitam-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cubes" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0,0 L10,0 L10,10 L0,10 Z M5,5 L15,5 L15,15 L5,15 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cubes)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }

.beta-badge {
    display: inline-block;
    background: var(--axitam-orange);
    color: var(--white);
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out both;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
}

.hero .tagline {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: slideUp 1s ease-out 0.3s both;
}

.hero .standards {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease-out 0.5s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cta-button {
    background: var(--axitam-green);
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid var(--axitam-green);
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--axitam-orange);
    border-color: var(--axitam-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary { background: transparent; border-color: var(--white); }
.cta-button.secondary:hover { background: var(--white); border-color: var(--white); color: var(--axitam-navy); }

/* Sections */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-alt { background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%); }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--axitam-navy);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--axitam-green);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    color: var(--gray-dark);
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto 3rem;
}

/* API cards */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 2rem;
}

.api-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--axitam-blue), var(--axitam-green));
}

.api-card:hover { transform: translateY(-10px); }

.api-icon { font-size: 2.8rem; margin-bottom: 0.5rem; }

.api-card h3 { font-size: 1.5rem; color: var(--axitam-navy); }

.api-card p { color: var(--text); margin-bottom: 1rem; flex-grow: 1; }

.api-card p.api-standard { color: var(--axitam-green); font-weight: bold; font-size: 0.9rem; flex-grow: 0; }

.api-card code.endpoint {
    display: block;
    background: #F1F5F9;
    color: var(--axitam-navy);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere;
}

.api-card .spec-link { margin-top: 1rem; font-weight: bold; text-decoration: none; }
.api-card .spec-link:hover { color: var(--axitam-orange); }

/* Getting started */
/* minmax(0, 1fr): without it the widest code block sets the column width and the page scrolls sideways. */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; max-width: 900px; margin: 0 auto; }

.step h3 { color: var(--axitam-navy); margin-bottom: 0.5rem; font-size: 1.3rem; }
.step p { margin-bottom: 0.75rem; }

.step-number {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--axitam-green);
    color: var(--white);
    font-weight: bold;
    margin-right: 0.5rem;
}

.code-block { position: relative; }

.code-block pre, .try-output {
    background: var(--code-background);
    color: var(--code-text);
    padding: 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block .comment { color: #94A3B8; }

.copy-button {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--code-text);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.copy-button:hover { background: var(--axitam-green); border-color: var(--axitam-green); }

.inline-code { background: #F1F5F9; color: var(--axitam-navy); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.9em; overflow-wrap: anywhere; }

/* Try it */
.try-panel {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.try-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

.try-controls select {
    flex: 1 1 320px;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
}

.try-controls .cta-button { padding: 0.8rem 1.6rem; font-size: 1rem; }

.try-status { font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 0.5rem; min-height: 1.4rem; }

.try-output { min-height: 8rem; max-height: 26rem; white-space: pre; }

/* Documentation links */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.doc-link {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--axitam-navy);
    transition: all 0.3s ease;
}

.doc-link strong { display: block; margin-bottom: 0.25rem; }
.doc-link span { color: var(--gray-dark); font-size: 0.9rem; }
.doc-link:hover { border-color: var(--axitam-blue); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }
.doc-link.primary { background: var(--axitam-navy); color: var(--white); border-color: var(--axitam-navy); }
.doc-link.primary span { color: var(--gray-light); }

/* Beta notice */
.beta-section {
    background: var(--axitam-navy);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.beta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.beta-section p { max-width: 760px; margin: 0 auto 1.5rem; opacity: 0.95; }
.beta-section a:not(.cta-button) { color: var(--axitam-green); }

/* Footer */
.footer { background: #0F172A; color: var(--white); text-align: center; padding: 2rem; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-bottom: 1rem; }
.footer-links a { color: var(--axitam-blue); text-decoration: none; }
.footer-links a:hover { color: var(--axitam-green); }
.footer .data-credit { font-size: 0.9rem; opacity: 0.7; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 820px) {
    .nav { padding: 0.8rem 1rem; }
    .nav-links li:not(.lang-switch) { display: none; }
    .lang-switch { border-left: none; padding-left: 0; }
    .logo { font-size: 1.4rem; }
    .hero { padding: 7rem 1rem 4rem; min-height: auto; }
    .hero h1 { font-size: 2.3rem; }
    .hero .tagline { font-size: 1.15rem; }
    .section { padding: 3.5rem 1rem; }
    .section-title { font-size: 1.9rem; }
    .try-panel { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* Belgian enterprise search: one text box, a result list or an enterprise card. */
.enterprise-search-form { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.enterprise-search-form input {
    flex: 1 1 14rem;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    color: var(--text);
}
.enterprise-search-form input:focus { outline: none; border-color: var(--axitam-blue); }
.enterprise-search-form .cta-button { padding: 0.8rem 1.6rem; font-size: 1rem; }
.enterprise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.enterprise-result {
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.enterprise-result:hover, .enterprise-result:focus { border-color: var(--axitam-blue); outline: none; }
.enterprise-result strong { color: var(--axitam-navy); }
.enterprise-result span { font-size: 0.9rem; color: var(--gray-dark); }
.enterprise-card { background: var(--white); border: 2px solid var(--gray-light); border-radius: 8px; padding: 1.5rem; }
.enterprise-card h3 { color: var(--axitam-navy); margin-bottom: 1rem; }
.enterprise-fields { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 0; }
.enterprise-fields dt { font-weight: bold; color: var(--gray-dark); }
.enterprise-fields dd { margin: 0; overflow-wrap: anywhere; }
.enterprise-links { margin-top: 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.enterprise-links a { font-weight: bold; text-decoration: none; }
.enterprise-links a:hover { color: var(--axitam-orange); }
.country-tabs { display: flex; gap: 0.5rem; margin: 0 auto; max-width: 1136px; }
.search-panel { max-width: 1136px; }
.country-tab, .record-tab {
    background: var(--gray-light); border: 2px solid var(--gray-light); border-bottom: none; border-radius: 8px 8px 0 0;
    padding: 0.6rem 1.2rem; font: inherit; font-weight: bold; color: var(--gray-dark); cursor: pointer;
}
.country-tab[aria-selected="true"], .record-tab[aria-selected="true"] { background: var(--white); color: var(--axitam-navy); border-color: var(--axitam-blue); }
.search-panel { border-top-left-radius: 0; }
.search-panel[hidden] { display: none; }
.search-types { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; border: none; padding: 0; margin: 0; flex-basis: 100%; }
.search-type { font-size: 0.95rem; cursor: pointer; }
.search-type input { margin-right: 0.3rem; }
.enterprise-card h5 { color: var(--axitam-navy); margin: 0.8rem 0 0.4rem; font-size: 0.95rem; }
.document-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.25rem; font-size: 0.92rem; }
.document-list li::before { content: "\2713\00a0"; color: #1a7f37; font-weight: bold; }
.document-list.document-list-refused li::before { content: "\2717\00a0"; color: var(--gray-dark); }
.document-list.document-list-refused li { color: var(--gray-dark); }
.annual-accounts, .peppol-registration { margin-top: 1.5rem; border-top: 1px solid var(--gray-light); padding-top: 1rem; }
.annual-accounts h4, .peppol-registration h4 { color: var(--axitam-navy); margin-bottom: 0.6rem; }
.annual-accounts-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.4rem; }
.annual-accounts-list li { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.95rem; }
.annual-accounts-documents a { font-weight: bold; text-decoration: none; margin-right: 0.8rem; }
.annual-accounts-documents a:hover { color: var(--axitam-orange); }
.annual-accounts-note { font-size: 0.9rem; color: var(--gray-dark); margin: 0; }
.link-button { background: none; border: none; padding: 0; font: inherit; font-weight: bold; color: var(--axitam-blue); cursor: pointer; text-decoration: underline; }
.link-button:hover { color: var(--axitam-orange); }
@media (max-width: 820px) {
    .enterprise-fields { grid-template-columns: 1fr; gap: 0.1rem 0; }
    .enterprise-fields dd { margin-bottom: 0.6rem; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One page for every host (js/homepage-scope.js): elements that depend on a source stay hidden until the
   script has read the data sources; without JavaScript the class is never set and everything shows. */
.scoped-pending [data-requires], .scoped-pending [data-requires-any], .scoped-pending [data-hidden-when-any] { display: none; }
.hero-sources { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1.15rem; line-height: 1.6; opacity: 0.95; }
.hero .standards .standard + .standard::before { content: "\00a0\00b7\00a0"; }
.data-credit .credit + .credit::before { content: ", "; }
.host.you-are-here a { font-weight: bold; }
.you-are-here-badge { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.5rem; border-radius: 10px; background: var(--axitam-green, #2e7d32); color: #fff; font-size: 0.8rem; vertical-align: middle; }

/* Enterprise record: one tab per collection (js/enterprise-search.js), tables past the record header. */
.record-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 0; }
.record-tab { font-size: 0.95rem; padding: 0.5rem 1rem; }
.record-panel { border: 2px solid var(--axitam-blue); border-radius: 0 8px 8px 8px; padding: 0.8rem 1rem; background: var(--white); }
.record-panel[hidden] { display: none; }
.table-scroll { overflow-x: auto; }
.record-table, .hosts-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.2rem 0 0.6rem; }
.record-table th, .hosts-table th { text-align: left; color: var(--gray-dark); font-weight: bold; border-bottom: 2px solid var(--gray-light); padding: 0.4rem 0.6rem; white-space: nowrap; }
.record-table td, .hosts-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--gray-light); vertical-align: top; overflow-wrap: anywhere; }
.record-table tbody tr:nth-child(even), .hosts-table tbody tr:nth-child(even) { background: #F8FAFC; }
.record-table a, .hosts-table a { font-weight: bold; text-decoration: none; }
.record-table a:hover, .hosts-table a:hover { color: var(--axitam-orange); }
.hosts-table { max-width: 1136px; margin: 1rem auto 0; }
.hosts-table tr:has(.you-are-here) { background: #E8F5E9; }
.hosts-table td.host { white-space: nowrap; }

/* The module served by this host, across the top-right corner of the hero (none on the full API). */
.module-ribbon {
    position: absolute; top: 6.5rem; right: -4rem; width: 17rem; padding: 0.45rem 0; z-index: 3;
    background: var(--axitam-orange); color: var(--white); font-weight: bold; font-size: 0.95rem;
    letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
    transform: rotate(45deg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .module-ribbon { top: 5.5rem; right: -4.4rem; width: 15rem; font-size: 0.8rem; }
}

/* Developer portal (/account/, js/account.js): one card per view, forms, alerts, the key shown once. */
.portal-body { background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%); min-height: 100vh; }
.portal { max-width: 860px; margin: 0 auto; padding: 7rem 1rem 3rem; }
.portal-loading { text-align: center; color: var(--gray-dark); }
.portal-card { background: var(--white); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); padding: 2rem; }
.portal-card h1 { color: var(--axitam-navy); font-size: 1.8rem; margin-bottom: 1rem; }
.portal-card h2 { color: var(--axitam-navy); font-size: 1.2rem; margin: 2rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--gray-light); }
.portal-intro { color: var(--gray-dark); margin-bottom: 1.2rem; }
.portal-form { display: grid; gap: 1rem; }
.portal-form-inline { grid-template-columns: 1fr auto; align-items: end; }
.form-field { display: grid; gap: 0.3rem; font-weight: bold; color: var(--gray-dark); font-size: 0.95rem; }
.form-field input, .form-field select, .reason-input {
    font: inherit; font-weight: normal; color: var(--text); padding: 0.7rem 0.9rem;
    border: 2px solid var(--gray-light); border-radius: 8px; background: var(--white);
}
.form-field input:focus, .form-field select:focus, .reason-input:focus { outline: none; border-color: var(--axitam-blue); }
.form-field small { font-weight: normal; color: var(--gray-dark); }
.form-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.form-check input { margin-top: 0.3rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-actions a { font-weight: bold; text-decoration: none; }
.cta-button.small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.cta-button.danger { background: #B91C1C; border-color: #B91C1C; }
.cta-button.secondary-dark { background: transparent; color: var(--axitam-navy); border-color: var(--axitam-navy); }
.cta-button.secondary-dark:hover { background: var(--axitam-navy); color: var(--white); }
.alert { padding: 0.9rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem; border: 1px solid; }
.alert-error { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.alert-success { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }
.portal-fields { margin-bottom: 1rem; }
.portal-danger { margin-top: 1.5rem; border: 1px solid #FCA5A5; border-radius: 8px; padding: 0.8rem 1.2rem; }
.portal-danger summary { cursor: pointer; font-weight: bold; color: #991B1B; }
.portal-danger p { margin: 0.8rem 0; }
.key-secret { position: relative; background: var(--code-background); color: var(--code-text); border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1rem 0; }
.key-secret p { margin-bottom: 0.6rem; color: #FDE68A; }
.key-secret code { display: block; font-size: 1.05rem; overflow-wrap: anywhere; user-select: all; }
.portal-copy { top: 0.8rem; right: 0.8rem; }
.portal-nav .link-button { font-weight: 500; text-decoration: none; color: var(--axitam-navy); }
.portal-nav .link-button:hover { color: var(--axitam-blue); }
.portal-nav a.active { color: var(--axitam-blue); }
.danger-link { color: #B91C1C; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.record-table .link-button { margin-right: 0.8rem; }
@media (max-width: 820px) {
    .portal { padding-top: 6rem; }
    .portal-card { padding: 1.25rem; }
    .portal-form-inline { grid-template-columns: 1fr; }
    .nav-links.portal-nav li:not(.lang-switch) { display: block; }
    .nav-links.portal-nav { gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
}

/* Legal pages of the portal (terms of use, privacy and cookies): plain reading layout. */
.legal .portal-card h2 { border-top: none; padding-top: 0; margin-top: 1.6rem; }
.legal .portal-card p { margin-bottom: 0.8rem; }
.legal .record-table { margin: 0.6rem 0 1rem; }
