:root {
    color-scheme: dark;
    --page: #090a11;
    --text: #f4f2fc;
    --muted: #b3afc4;
    --accent: #c4adff;
    --line: rgba(191, 168, 255, .17);
    --card: rgba(22, 21, 36, .78);
    --soft: rgba(176, 141, 255, .09);
    font-family: Cairo, Tahoma, Arial, sans-serif;
    line-height: 1.9;
    background: var(--page);
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 90% 0, #753be124, transparent 48%), radial-gradient(ellipse at 0 65%, #1685ac16, transparent 50%); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 24px; z-index: 3; padding: 10px 18px; border-radius: 8px; color: var(--text); background: var(--page); }
.skip-link:focus { top: 12px; }
.terms-nav { max-width: 1160px; margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.terms-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 800; }
.terms-brand img { display: block; border-radius: 13px; }
.back-link { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; min-height: 44px; }
.back-link:hover { color: var(--text); }
.terms-main { max-width: 1000px; margin: 0 auto; padding: 56px 28px; }
.terms-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.terms-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; letter-spacing: .18em; font-weight: 700; text-align: start; }
[dir="rtl"] .terms-eyebrow { text-align: right; }
h1 { margin: 0; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.5; }
.terms-subtitle { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.language-switch { display: flex; flex-shrink: 0; border: 1px solid var(--line); padding: 5px; border-radius: 14px; background: var(--soft); }
.language-switch a { min-width: 84px; min-height: 44px; display: grid; place-items: center; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-size: 14px; }
.language-switch a[aria-current="page"] { background: #ac8aed; color: #181123; font-weight: 700; }
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current="page"]:hover { color: #181123; }
.terms-card { border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 16px 60px #0002, inset 0 1px 0 #ffffff06; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 12px 36px; }
.terms-list { margin: 0; padding: 0; list-style: decimal; list-style-position: outside; padding-inline-start: 28px; }
.terms-list li { padding: 24px 0; padding-inline-start: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
.terms-list li::marker { font-size: 15px; font-weight: 800; color: var(--accent); }
.terms-list li:last-child { border: 0; }
.terms-list p { margin: 0; overflow-wrap: break-word; }
.terms-support { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 28px 0; margin-top: 12px; }
.terms-support h2 { font-size: 18px; margin: 0; }
.terms-support p { font-size: 14px; margin: 6px 0 0; color: var(--muted); }
.terms-support a { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid #4cd4a34d; background: #25bd8c0b; border-radius: 12px; padding: 12px 20px; color: #7ce3bb; font-size: 14px; font-weight: 700; }
.terms-support a:hover { background: #25bd8c18; }
.terms-footer { max-width: 1160px; padding: 24px 28px; margin: auto; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.terms-footer a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 640px) {
    .terms-nav { padding: 18px; gap: 12px; }
    .terms-brand { font-size: 19px; gap: 9px; }
    .terms-brand img { width: 38px; height: 38px; border-radius: 11px; }
    .back-link { font-size: 12px; gap: 6px; }
    .terms-main { padding: 32px 18px 24px; }
    .terms-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
    .terms-subtitle { font-size: 14px; }
    .terms-card { padding: 4px 20px; border-radius: 20px; }
    .terms-list { padding-inline-start: 22px; }
    .terms-list li { font-size: 15px; padding-block: 20px; padding-inline-start: 8px; }
    .terms-support { align-items: stretch; flex-direction: column; padding-bottom: 8px; }
    .terms-footer { padding: 16px 18px; }
}
@media (prefers-color-scheme: light) {
    :root { color-scheme: light; --page: #f6f7fc; --text: #20243a; --muted: #586079; --accent: #6940ae; --line: rgba(105, 64, 174, .15); --card: rgba(255,255,255,.83); --soft: rgba(105,64,174,.05); }
    .terms-card { box-shadow: 0 12px 40px #34376408; }
    .terms-support a { color: #126647; border-color: #16875d40; }
}
@media print {
    :root { color-scheme: light; color: #111; background: white; --text: #111; --muted: #444; --accent: #333; --line: #ddd; }
    body { background: white; }
    .language-switch, .terms-support, .back-link, .terms-footer, .skip-link { display: none; }
    .terms-main { max-width: none; padding: 20px 0; }
    .terms-card { background: white; border: 0; box-shadow: none; padding: 0 20px; }
    .terms-list li { break-inside: avoid; }
}
