/* LawTeam's own pages: its page at lawteam.app (site/legal.html), the terms, the privacy policy
   and the page-not-found page. Same look as the app («الوضوح»): white cards on a pale
   warm ground, LawTeam's navy for actions and a touch of the logo's gold, IBM Plex Sans Arabic,
   Western digits. The one flourish is the source chip set into the headline: the product's
   promise in its own form. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); }
/* The same face's Latin half: digits and English names, so they match the Arabic. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --ground: #F6F5F1; --surface: #FFFFFF; --ink: #18202F; --ink-2: #353D50; --muted: #4B5366;
  --line: #E1E0DB; --accent: #24468A; --accent-btn: #14213D; --accent-hover: #24468A; --on-accent: #FFFFFF;
  --accent-soft: #E9EEF8; --on-soft: #1B3570; --gold: #C8A24A;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%2324468A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --logo-box: #14213D; --logo-ink: #FFFFFF; --logo-rule: #C8A24A; --frame: #18202F;
  --shadow: 0 1px 2px rgba(20, 28, 46, 0.06), 0 8px 24px rgba(20, 28, 46, 0.06);
  --ui: "IBM Plex Sans Arabic", system-ui, "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
/* Dark is for screens: a printed page keeps the light colours. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --ground: #0C1019; --surface: #141926; --ink: #E6E8EE; --ink-2: #C8CCD7; --muted: #A0A6B5;
    --line: #283042; --accent: #A3B8EE; --accent-btn: #A3B8EE; --accent-hover: #B7C8F3; --on-accent: #0E1A33;
    --accent-soft: #1B2640; --on-soft: #A3B8EE;
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%23A3B8EE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --logo-box: #F5F1E8; --logo-ink: #14213D; --logo-rule: #B8913A; --frame: #3A4358;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.75 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
b { font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: var(--accent-btn); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--ui); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--accent); }
.btn.big { height: 52px; padding: 0 24px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 42px; height: 42px; flex: none; display: block; }
.brand-by { font-size: 15px; font-weight: 600; white-space: nowrap; }
.bar nav { display: flex; gap: 22px; margin-inline-end: auto; }
.bar nav a { display: block; line-height: 68px; color: var(--ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; }
.bar nav a:hover { color: var(--accent); }
.bar-actions { display: flex; gap: 8px; }

/* Hero */
.hero { padding-block: 56px 64px; }
/* The page's shape: the headline centred over one large picture of the product, then rows of
   text beside a picture, turn about. */
.hero > .wrap { display: grid; gap: 40px; }
.hero .hero-text { justify-items: center; text-align: center; max-width: 860px; margin-inline: auto; }
.hero .actions { justify-content: center; }
.hero .lead { max-width: 62ch; }
main > section.row { padding-block: 64px; border-top: 1px solid var(--line); }
.row-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.row.flip .row-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .row-text { order: 2; }
.row-text { display: grid; gap: 14px; }
.row-text > p:not(.product-line) { color: var(--ink-2); }
.row-text .checks { gap: 10px; }
.shot img { display: block; width: 100%; height: auto; }
/* One navy button a screen: the bar's is plain while one of the page's own is in view, and
   landing.js gives it the navy when none is. */
.hero-text { display: grid; gap: 22px; }
.product-line { color: var(--accent); font-weight: 600; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; line-height: 1.3; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.price-line { color: var(--muted); font-size: 16px; }
.price-line b { color: var(--ink); }

.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.shot picture { display: block; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Sections */
main > section { padding-block: 72px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px var(--tick); }
.checks li b { color: var(--ink); }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.trust article { border-top: 2px solid var(--gold); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.trust p { color: var(--ink-2); font-size: 16px; }

/* «الاشتراك», in one column: the trial, the plans monthly and yearly with one suggested, what a
   page is, four short facts, and the button under them. */
.price { background: var(--ground); border-block: 1px solid var(--line); }
.price-in { display: grid; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px 44px; box-shadow: var(--shadow); }
.price-in p { color: var(--ink-2); max-width: 60ch; }
.price-trial { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--on-soft) !important; font-weight: 600; font-size: 15px; }
.price-trial::before { content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center / 14px var(--tick); }
.price-trial:empty { display: none; }
.plans { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plans th, .plans td { padding: 14px 16px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plans th { color: var(--muted); font-weight: 600; font-size: 14px; }
.plans tbody tr:last-child td { border-bottom: 0; }
.plans td:first-child { font-weight: 600; color: var(--ink); }
.plans .mo { font-weight: 700; color: var(--ink); }
.plans .yr { color: var(--ink-2); }
.plans .save { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--on-soft); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.plans .pick-tag { display: inline-block; margin-inline-start: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-btn); color: var(--on-accent); font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.plans tr.pick td { background: var(--accent-soft); }
.plans tr.pick td:first-child { box-shadow: inset -4px 0 0 var(--accent-btn); }
.plans-save { display: none; font-size: 14px; font-weight: 600; color: var(--on-soft) !important; }
.price-in .page-note { margin-top: -6px; font-size: 14px; color: var(--muted); }
.price-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.price-facts li { position: relative; padding-inline-start: 30px; color: var(--ink-2); font-size: 16px; }
.price-facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px var(--tick); }
.price-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px;
  padding-top: 24px; border-top: 1px solid var(--line); }
.fine { font-size: 14px; color: var(--muted); }

.band { background: var(--ground); border-block: 1px solid var(--line); }
/* Two columns of questions, each its own stack: opening one moves only the questions under it. */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px 16px; margin-top: 28px; }
.faq-col { display: grid; gap: 10px; align-content: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 20px; border-radius: 12px; }
.faq details p { color: var(--ink-2); font-size: 16px; padding: 0 20px 16px; }

/* A short hero: the terms, the privacy policy and the page-not-found page */
.hero-short { padding-block: 48px 40px; }
/* The terms and the privacy policy: one column of text */
main > section.guide-section { padding-block: 8px 56px; }
.guide { max-width: 760px; display: grid; gap: 14px; }
.guide .lead { font-size: 19px; color: var(--ink); }
.guide h2 { font-size: 24px; margin-top: 22px; }
.guide p, .guide li { color: var(--ink-2); font-size: 17px; line-height: 1.9; }
.guide ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
/* The privacy policy: numbered sections on the guide layout, its providers in a table. */
.policy section { display: grid; gap: 10px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.policy th, .policy td { padding: 10px 12px; text-align: start; vertical-align: top; border: 1px solid var(--line); line-height: 1.7; }
.policy th { background: var(--ground); color: var(--ink); }
.policy .en { text-align: left; }
.policy code { font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .policy table { display: block; overflow-x: auto; } }
.guide table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.guide th, .guide td { padding: 10px 12px; text-align: start; vertical-align: top; border: 1px solid var(--line); line-height: 1.7; }
.guide th { background: var(--ground); color: var(--ink); font-weight: 700; }
.guide .fine, .guide p.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

.contact-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.contact-in .actions { justify-content: center; }
.contact-in p { color: var(--ink-2); }
#contact .contact-in > p.alt { margin-top: -8px; }

footer { border-top: 1px solid var(--line); background: var(--ground); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-block: 14px; font-size: 14px; color: var(--muted); }
.foot-in a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* Tablets */
@media (max-width: 1000px) {
  html { scroll-padding-top: 124px; }
  .bar-in { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 4px; }
  .bar nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { line-height: 44px; }
  .bar-actions { margin-inline-start: auto; }
  .row-in, .row.flip .row-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .row.flip .row-text { order: 0; }
  .row-text { max-width: 68ch; }
  main > section.row { padding-block: 48px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .price-facts { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Narrower than a wide screenshot stays readable: the phone's screen instead, in a phone's frame. */
@media (max-width: 800px) {
  .shot.has-phone { width: 100%; max-width: 300px; margin-inline: auto; border: 6px solid var(--frame); border-radius: 28px; }
  .shot.has-phone figcaption { display: none; }
}
/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .bar-in { gap: 12px; padding-top: 10px; }
  .bar nav { gap: 0 12px; }
  .bar nav a { font-size: 14px; line-height: 38px; }
  /* Both buttons stay beside the logo, sign-in narrower: the way back in is always in view. */
  .bar-actions { gap: 4px; }
  .bar-actions .ghost { padding: 0 8px; }
  /* One card per plan instead of a table whose cells wrap («عضو / واحد»). */
  .plans { display: grid; gap: 10px; overflow: visible; border: 0; border-radius: 0; background: none; }
  .plans thead { display: none; }
  .plans tbody { display: grid; gap: 10px; }
  .plans tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .plans td { padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  .plans td.nm { grid-column: 1 / -1; margin-bottom: 4px; font-size: 18px; }
  .plans td.mem { grid-column: 1; grid-row: 2; }
  .plans td.pg { grid-column: 1; grid-row: 3; }
  .plans td.mem, .plans td.pg { color: var(--ink-2); font-size: 15px; }
  .plans td.mem::before { content: "الأعضاء: "; color: var(--muted); }
  .plans td.pg::before { content: "الصفحات شهريًا: "; color: var(--muted); }
  .plans td.pg.none::before { content: none; }
  .plans td.mo { grid-column: 2; grid-row: 2; font-size: 17px; text-align: end; }
  .plans td.mo::after { content: " شهريًا"; font-weight: 400; font-size: 14px; color: var(--muted); }
  .plans td.yr { grid-column: 2; grid-row: 3; font-size: 15px; text-align: end; }
  .plans td.yr::after { content: " سنويًا"; font-size: 14px; color: var(--muted); }
  .plans tr.pick { padding: 13px 15px; border: 2px solid var(--accent-btn); background: var(--accent-soft); }
  .plans .pick-tag { margin-inline-start: 8px; }
  .plans-save { display: block; }
  .price-action { display: grid; justify-items: stretch; }
  .brand-by { display: none; }
  .bar-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .hero { padding-block: 36px 48px; }
  .hero h1 { font-size: 32px; }
  .hero .hero-text { justify-items: start; text-align: start; }
  .hero .actions { justify-content: flex-start; }
  .hero .actions .how { display: none; } /* «كيف تعمل» is in the bar above */
  main > section, main > section.row { padding-block: 40px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .price-in { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; } /* the plans are the cards */
  .guide table { display: block; overflow-x: auto; }
  .btn.big { width: 100%; }
  .actions { width: 100%; }
}
/* Print: the terms or the privacy policy as a clean handout, without the site around it */
@media print {
  :root { --ground: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --muted: #444; --line: #bbb; }
  body { background: #fff; font-size: 12pt; }
  .bar, footer, .skip, #contact, .actions { display: none !important; }
  main > section, main > section.guide-section { padding-block: 8pt; }
  .band { background: none; border: 0; }
  .hero-short { padding-block: 0 8pt; }
  .guide { max-width: none; }
  .guide a { color: inherit; text-decoration: underline; }
  .guide table, .guide tr, .guide li { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  main::after { content: "LawTeam · lawteam.app"; display: block; margin-top: 16pt; padding-top: 6pt; border-top: 1px solid #bbb; color: #444; font-size: 10pt; }
}
