/* New Faster Travel — the site's other pages (errors, privacy, terms), on top of site.css. */

/* Both languages are in the page; the one not chosen is hidden. */
html:not([lang="ar"]) .ar, html[lang="ar"] .en { display: none !important; }

.pg { min-height: 100svh; display: flex; flex-direction: column; }
.pg-main { flex: 1; padding-top: 76px; overflow-x: clip; }
.pg-foot { padding: 0 0 28px; border-top: 0; }
.pg-foot .foot-bottom { margin-top: 0; }
.pg-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pg-links a:hover { color: var(--text); }
@media (max-width: 920px) {
    .pg .nav-act .btn { display: inline-flex; }
}
@media (max-width: 380px) {
    .pg .nav-act .btn { padding: 0 12px; }
}

/* ------------------------------------------------------------ error pages */
.err {
    position: relative; isolation: isolate;
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px);
    min-height: calc(100svh - 76px - 90px);
    padding-block: clamp(40px, 8vh, 96px);
}
.err::before {
    content: ""; position: absolute; z-index: -1; inset: -10% -20% auto; height: 80%;
    background: radial-gradient(60% 60% at 30% 40%, rgba(235, 24, 77, .2), transparent 70%);
    pointer-events: none;
}
.err-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; container-type: inline-size; }
.err-code {
    position: absolute; inset: 0; display: grid; place-items: center;
    /* Sized to the picture, not the window, so the number never reaches the text. */
    font: 700 34cqw/1 "Unbounded", system-ui, sans-serif; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 138, 166, .38);
    background: linear-gradient(180deg, rgba(255, 60, 108, .3), rgba(255, 60, 108, 0) 75%);
    -webkit-background-clip: text; background-clip: text;
    transform: translateY(-14%); user-select: none;
    direction: ltr;
}
.err-car {
    position: relative; width: 88%; height: auto; margin-top: 18%;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
    animation: err-in 1.1s var(--ease) both;
}
/* Not mirrored in Arabic: the livery's lettering would read backwards. */
.err-road {
    position: absolute; left: 6%; right: 6%; bottom: 4%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--red2), transparent);
    box-shadow: 0 0 24px 6px rgba(235, 24, 77, .45);
}
@keyframes err-in { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }

.err-eyebrow { color: var(--rose); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .err-eyebrow { letter-spacing: 0; font-size: 15px; }
.err h1 { font: 600 clamp(34px, 5vw, 58px)/1.08 var(--font-d); letter-spacing: -.02em; margin-top: 14px; }
html[lang="ar"] .err h1 { font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.err-lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 34em; }
.err-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.err-help { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; }
.err-help a { color: var(--text); font-weight: 700; }
.err-help a:hover { color: var(--rose); }

@media (max-width: 860px) {
    .err { grid-template-columns: 1fr; text-align: center; gap: 8px; min-height: 0; }
    .err-art { max-width: 520px; width: 100%; margin-inline: auto; }
    .err-lead { margin-inline: auto; }
    .err-act { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .err-car { animation: none; }
}

/* ------------------------------------------------------------ privacy, terms */
.doc { max-width: 820px; padding-block: clamp(40px, 7vh, 80px); }
.doc-eyebrow { color: var(--rose); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .doc-eyebrow { letter-spacing: 0; font-size: 15px; }
.doc h1 { font: 600 clamp(32px, 4.6vw, 50px)/1.1 var(--font-d); letter-spacing: -.02em; margin-top: 12px; }
html[lang="ar"] .doc h1 { font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.doc-date { color: var(--dim); font-size: 14px; margin-top: 12px; }
.doc-lead { color: var(--muted); font-size: 18px; margin-top: 22px; }
.doc-toc {
    margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--panel); columns: 2; column-gap: 32px; font-size: 15px;
}
.doc-toc li { break-inside: avoid; padding: 3px 0; }
.doc-toc a { color: var(--muted); }
.doc-toc a:hover { color: var(--text); }
.doc section { margin-top: 44px; scroll-margin-top: 96px; }
.doc h2 { font: 600 22px/1.3 var(--font-d); letter-spacing: -.01em; }
html[lang="ar"] .doc h2 { font-weight: 800; letter-spacing: 0; }
.doc h3 { font-size: 16px; font-weight: 800; margin-top: 20px; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-top: 12px; }
.doc strong { color: var(--text); }
.doc section ul { margin-top: 10px; padding-inline-start: 20px; list-style: disc; }
.doc section li { margin: 7px 0; }
.doc section li::marker { color: var(--red2); }
.doc a:not(.btn) { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a[dir="ltr"] { white-space: nowrap; unicode-bidi: isolate; }
.doc .box {
    margin-top: 16px; padding: 18px 20px; border-radius: var(--r);
    border: 1px solid rgba(255, 60, 108, .3); background: rgba(235, 24, 77, .07);
}
.doc .box p:first-child { margin-top: 0; }
@media (max-width: 640px) {
    .doc-toc { columns: 1; }
}
