/* Maktoob — the legal, help, company and system pages (Batch 6): terms, privacy, returns, shipping, help, contact,
   about, request, 404 and status. One stylesheet, linked with css="info". */

/* ---------- head ---------- */
.info { min-height: 70svh; }
.info__head { max-width: 860px; margin-bottom: var(--s8); }
.info__k { color: var(--ink-2); margin-bottom: var(--s4); }
.info__lede { margin-top: var(--s5); max-width: 58ch; font-size: var(--fs-bl); line-height: 1.55; color: var(--ink-2); }
.info__meta { margin-top: var(--s4); font: 500 14px/1.4 var(--f-ui); color: var(--ink-2); }
.info .h1 { text-wrap: balance; }

/* ---------- legal layout: the table of contents on the left, text on 7 columns ---------- */
.info__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.info__toc { grid-column: 1 / span 3; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding-inline-end: 8px; }
.info__toc-t { margin-bottom: var(--s3); font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.info__toc ol { display: grid; gap: 2px; border-inline-start: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.info__toc a {
  display: block; margin-inline-start: -1.5px; padding-block: 7px; padding-inline: 16px 0; border-inline-start: 2.5px solid transparent;
  font: 500 14.5px/1.4 var(--f-ui); color: var(--ink-2); text-decoration: none; transition: color var(--t-micro), border-color var(--t-micro);
}
.info__toc a:hover { color: var(--ink); }
.info__toc a[aria-current="true"] { color: var(--ink); font-weight: 700; border-inline-start-color: var(--blue); }
.info__body { grid-column: 5 / span 7; min-width: 0; }

/* ---------- prose ---------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > section + section { margin-top: var(--s7); }
.prose h2 { scroll-margin-top: 104px; margin-bottom: var(--s4); font: 700 26px/1.25 var(--f-ui); letter-spacing: -.02em; text-wrap: balance; }
.prose h3 { margin: var(--s5) 0 var(--s2); font: 700 18px/1.35 var(--f-ui); }
.prose p, .prose li { max-width: 66ch; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .info__table, .prose .info__table + p, .prose p + .note, .prose .note + p, .prose ul + .note, .prose p + dl, .prose dl + p { margin-top: var(--s4); }
.prose ul { display: grid; gap: 8px; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 22px; }
.prose ul > li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 2px; border-radius: 1px; background: var(--blue); }
.prose strong { font-weight: 700; }
.prose a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose .note { max-width: 66ch; font-size: 15px; }
.prose [dir="ltr"] { unicode-bidi: isolate; }

/* a fee or time table */
.info__table { width: 100%; max-width: 66ch; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.info__table caption { text-align: start; padding-bottom: 8px; font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.info__table th, .info__table td { padding-block: 12px; padding-inline: 0 12px; text-align: start; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.info__table thead th { border-top: 0; font: 600 13px/1.3 var(--f-ui); color: var(--ink-2); }
.info__table td:last-child, .info__table th:last-child { padding-inline-end: 0; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.info__table tbody tr:last-child > * { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }

/* the seller's details */
.info__dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; max-width: 66ch; font-size: 16px; }
.info__dl dt { font-weight: 600; color: var(--ink-2); }
.info__dl dd { margin: 0; }

/* "Still need help?" */
.info__help { margin-top: var(--s8); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s6); align-items: center; }
.info__help h2 { font: 700 22px/1.25 var(--f-ui); letter-spacing: -.01em; }
.info__help p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.info__help-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- help centre ---------- */
.help__search { position: relative; max-width: 640px; margin-top: var(--s6); }
.help__search .input { height: 60px; padding-inline-start: 54px; font-size: 17px; }
.help__search svg { position: absolute; inset-inline-start: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.help__count { min-height: 1.5em; margin-top: var(--s3); font: 500 14px/1.5 var(--f-ui); color: var(--ink-2); }
.help__topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-bottom: var(--s9); }
.help__topic {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-content: start; padding: var(--s5); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--e1); color: var(--ink); text-decoration: none; transition: box-shadow var(--t-ui), transform var(--t-ui) var(--ease-out);
}
.help__topic:hover { box-shadow: var(--e2); transform: translateY(-2px); }
.help__topic svg { grid-row: span 2; width: 28px; height: 28px; margin-top: 2px; color: var(--blue); }
.help__topic-t { font: 700 18px/1.3 var(--f-ui); }
.help__topic-s { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.help__sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; scroll-margin-top: 96px; }
.help__sec + .help__sec { margin-top: var(--s8); }
.help__sec > h2 { grid-column: 1 / span 4; display: flex; align-items: center; gap: 12px; font: 700 28px/1.2 var(--f-ui); letter-spacing: -.02em; }
.help__sec > h2 svg { width: 26px; height: 26px; flex: none; color: var(--blue); }
.help__list { grid-column: 5 / span 8; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.help__list .qa summary { padding: 20px 0; font-size: 18px; }
.help__list .qa > div { padding-bottom: 22px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.help__list .qa > div p + p { margin-top: 10px; }
.help__list .qa a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.help__none { padding: var(--s6); border-radius: var(--r-lg); background: var(--stone-50); max-width: 640px; }
.help__none p + p { margin-top: 8px; color: var(--ink-2); }
mark.hl { background: color-mix(in srgb, var(--sky) 70%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- contact and request: ways to reach us + a form ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.contact__ways { grid-column: 1 / span 5; display: grid; gap: var(--s4); }
.contact__form { grid-column: 7 / span 6; }
.way-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: var(--s5); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--e1); }
.way-card > svg { grid-row: span 3; width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.way-card__t { font: 700 17px/1.3 var(--f-ui); }
.way-card__v { font: 600 16px/1.4 var(--f-ui); }
.way-card__v a { color: var(--ink); }
.way-card__s { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hours { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; font-size: 15px; }
.hours dt { color: var(--ink-2); }
.form { display: grid; gap: var(--s5); }
.form .field { gap: 8px; }
.form__hint { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.form__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.form__done { display: grid; gap: var(--s4); justify-items: start; }
.form__done-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, #6FB58C 24%, transparent); }
.form__done-ico svg { width: 26px; height: 26px; color: #2E7A51; }
.form__done h2 { font: 700 24px/1.25 var(--f-ui); letter-spacing: -.015em; }
.form__done p { color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.form__ref { font: 700 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); }
.req-list { display: grid; gap: 0; margin-top: var(--s3); }
.req-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-size: 15px; }
.req-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.req-list__s { color: var(--ink-2); white-space: nowrap; }
.req-list__t { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ---------- 404 and status ---------- */
.sys { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.sys__main { grid-column: 1 / span 7; }
.sys__side { grid-column: 9 / span 4; }
.sys__code { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s5); font: 700 var(--fs-label)/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.sys__code svg { width: 30px; height: 24px; color: var(--blue); }
.sys__lede { margin-top: var(--s5); max-width: 52ch; font-size: var(--fs-bl); line-height: 1.55; color: var(--ink-2); }
.sys__id { font: 600 .92em/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.sys__search { display: flex; gap: 10px; max-width: 560px; margin-top: var(--s6); }
.sys__search .input { flex: 1; min-width: 0; height: 56px; }
.sys__search .btn { height: 56px; }
.sys__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s6); }
.sys__links { display: grid; gap: 0; }
.sys__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font: 600 16px/1.35 var(--f-ui); color: var(--ink); text-decoration: none; }
.sys__links a:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.sys__links a:hover { color: var(--blue); }
.sys__links a svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] .sys__links a svg { transform: scaleX(-1); }
.sys__links-t { margin-bottom: var(--s3); font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.sys__when { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--s5); padding: 10px 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--e1); font: 600 15px/1.3 var(--f-ui); }
.sys__when svg { width: 20px; height: 20px; color: var(--blue); }
.dl-list { display: grid; gap: 12px; margin-top: var(--s5); max-width: 640px; }
.dl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; padding-inline-end: 16px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--e1); }
.dl-item__cv { width: 56px; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; }
.dl-item__cv > * { width: 100%; height: 100%; }
.dl-item__t { font: 700 16px/1.3 var(--f-ui); }
.dl-item__s { margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.dl-item__ok { display: inline-flex; align-items: center; gap: 6px; }
.dl-item__ok svg { width: 14px; height: 14px; color: #2E7A51; }

/* ---------- about ---------- */
.about-eds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); max-width: none; margin-top: var(--s5); }
.about-ed { padding: var(--s5); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--e1); }
.about-ed h3 { margin: 0 0 6px; font-size: 17px; }
.about-ed p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 900 and below: one column, the contents list on top ---------- */
@media (max-width: 1100px) {
  .info__toc { grid-column: 1 / span 4; }
  .info__body { grid-column: 5 / span 8; }
  .help__topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-eds { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .info__head { margin-bottom: var(--s6); }
  .info__grid, .help__sec, .contact__grid, .sys { display: block; }
  .info__toc { position: static; max-height: none; overflow: visible; margin-bottom: var(--s7); padding: var(--s5); border-radius: var(--r-lg); background: var(--stone-50); }
  .info__toc a { min-height: 44px; display: flex; align-items: center; padding-block: 6px; }
  .help__sec > h2 { margin-bottom: var(--s3); font-size: 24px; }
  .contact__ways { margin-bottom: var(--s7); }
  .sys__side { margin-top: var(--s8); }
}
@media (max-width: 600px) {
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .help__topics { grid-template-columns: 1fr; gap: 12px; margin-bottom: var(--s8); }
  .help__topic { padding: var(--s4) var(--s5); }
  .help__list .qa summary { font-size: 17px; }
  .info__help { grid-template-columns: 1fr; }
  .info__help-acts .btn { flex: 1 1 100%; }
  .info__table { font-size: 14.5px; }
  .info__dl { grid-template-columns: 1fr; gap: 2px; }
  .info__dl dd + dt { margin-top: 10px; }
  .sys__search { flex-direction: column; }
  .sys__search .input { flex: none; }
  .sys__search .btn { width: 100%; }
  .sys__acts .btn { flex: 1 1 100%; }
  .form__acts .btn { width: 100%; }
  .dl-item { grid-template-columns: 48px minmax(0, 1fr); }
  .dl-item__cv { width: 48px; }
  .dl-item .btn { grid-column: 1 / -1; width: 100%; }
}

/* visually hidden, still read aloud */
.info-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sys__sub { margin-top: var(--s7); }
.sys__note { margin-top: var(--s6); max-width: 560px; }
.dl-item__a { display: block; }
.dl-item__ok { margin-top: 2px; }

/* phones: a three-column table becomes one block per row (row header on top, its two values below) */
@media (max-width: 600px) {
  .info__table td:last-child { white-space: normal; }
  .info__table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .info__table--stack, .info__table--stack tbody { display: block; }
  .info__table--stack caption { display: block; }
  .info__table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .info__table--stack tbody tr:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .info__table--stack th, .info__table--stack td, .info__table--stack tbody tr:last-child > * { padding: 0; border: 0; }
  .info__table--stack th[scope="row"] { grid-column: 1 / -1; font-weight: 700; }
  .info__table--stack td { color: var(--ink-2); }
  .info__table--stack td:last-child { text-align: end; }
}
.form .field__l { justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.form__done h2:focus { outline: none; }
.form__done [dir="ltr"], .way-card__v [dir="ltr"] { white-space: nowrap; }
