@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #fff;
  --surface: #f7f9f8;
  --surface-blue: #f5f7fa;
  --ink: #17231f;
  --muted: #63716d;
  --navy: #102f4d;
  --navy-soft: #205784;
  --green: #17483f;
  --green-bright: #276b5e;
  --orange: #d97732;
  --line: #e4eae7;
  --line-strong: #d3ddd8;
  --danger: #a43c33;
  --shadow-sm: 0 8px 28px rgb(16 47 77 / 8%);
  --shadow-lg: 0 28px 80px rgb(8 29 48 / 18%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.035em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; }
h3 { line-height: 1.25; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--navy); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgb(217 119 50 / 42%); outline-offset: 3px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 78px; background: rgb(255 255 255 / 92%); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: 180ms ease; }
.site-header.scrolled { height: 68px; border-color: var(--line); box-shadow: 0 4px 18px rgb(16 47 77 / 5%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 175px; height: auto; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 21px; margin-left: auto; }
.main-nav a { color: #33433e; font-size: 12px; font-weight: 700; white-space: nowrap; transition: color 160ms ease; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; gap: 7px; align-items: center; }
.nav-toggle { display: none; padding: 10px; background: transparent; border: 0; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 4px; background: var(--navy); }

.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 21px; color: var(--navy); background: white; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 800; font-size: 13px; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: white; background: var(--green); border-color: var(--green); box-shadow: 0 9px 22px rgb(23 72 63 / 17%); }
.button-primary:hover { background: #103d35; box-shadow: 0 12px 27px rgb(23 72 63 / 24%); }
.button-secondary:hover { border-color: var(--green); }
.button-ghost { background: transparent; border-color: transparent; }
.button-small { min-height: 40px; padding-inline: 15px; font-size: 11px; }
.button-large { min-height: 54px; padding-inline: 26px; }
.button-block { width: 100%; }
.text-button { width: 100%; margin-top: 12px; padding: 4px; color: var(--green); background: transparent; border: 0; font-size: 12px; font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: 105px 0 0; background: white; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .48; background-image: radial-gradient(circle at 8% 20%, rgb(23 72 63 / 5%) 0 1px, transparent 2px), linear-gradient(120deg, transparent 0 62%, rgb(16 47 77 / 2%) 62% 63%, transparent 63%); background-size: 24px 24px, 100% 100%; mask-image: linear-gradient(90deg, transparent, black 60%, black); }
.hero-grid { position: relative; display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: 44px; min-height: 520px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 570px; margin-bottom: 20px; color: var(--navy); font-size: clamp(2.05rem, 3.2vw, 3.15rem); line-height: 1.08; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 590px; margin-bottom: 26px; color: #50605a; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.privacy-note { display: flex; align-items: center; gap: 11px; margin-top: 25px; }
.privacy-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--green); border-radius: 50%; font-weight: 800; }
.privacy-note div { display: flex; flex-direction: column; }
.privacy-note strong { font-size: 12px; }
.privacy-note span { color: var(--muted); font-size: 10px; }
.hero-visual { min-width: 0; }
.hero-image-wrap { position: relative; max-width: 720px; margin-left: auto; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 30px 30px 76px 30px; box-shadow: var(--shadow-sm); }
.hero-image-wrap img { width: 100%; height: 390px; object-fit: cover; object-position: center 44%; border-radius: 21px 21px 66px 21px; }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: var(--ink); background: rgb(255 255 255 / 96%); border: 1px solid rgb(228 234 231 / 85%); border-radius: 13px; box-shadow: 0 14px 35px rgb(16 47 77 / 14%); }
.floating-card strong { display: block; max-width: 125px; font-size: 11px; line-height: 1.3; }
.floating-card span { color: var(--muted); font-size: 9px; }
.floating-card-case { top: 28px; left: -24px; }
.floating-card-secure { right: -20px; bottom: 25px; }
.mini-icon, .shield-icon { width: 32px; height: 32px; display: grid; place-items: center; color: white !important; background: var(--navy); border-radius: 9px; font-weight: 800; font-size: 15px !important; }
.shield-icon { background: var(--green); border-radius: 50%; }
.status-dot { width: 7px; height: 7px; margin-left: 5px; background: #51aa86; border-radius: 50%; }
.trust-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; border-top: 1px solid var(--line); }
.trust-strip div { min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 21px 17px; border-right: 1px solid var(--line); }
.trust-strip div:first-child { padding-left: 0; }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { color: var(--navy); font: 800 18px/1.15 var(--font-display); }
.trust-strip span { color: var(--muted); font-size: 11px; }
.trust-strip .trust-professionals strong { font-size: 13px; white-space: nowrap; }

.section-heading { margin-bottom: 40px; }
.section-heading h2 { max-width: 780px; }
.section-heading > p, .split-heading > p, .section-lead { color: var(--muted); font-size: 15px; }
.split-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 45px; align-items: end; }
.centered { max-width: 790px; margin-inline: auto; text-align: center; }
.centered .eyebrow { justify-content: center; }
.centered p { max-width: 640px; margin-inline: auto; }
.process-title { font-size: clamp(1.85rem, 3vw, 2.55rem); }

.filter-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 17px; }
.filter-panel label, .auth-panel form label, .wizard-step label, .otp-box label { display: flex; flex-direction: column; gap: 6px; color: #34443e; font-size: 12px; font-weight: 700; }
.filter-panel input, .filter-panel select, .auth-panel input, .wizard-step input, .wizard-step textarea, .wizard-step select, .otp-box input { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; }
.wizard-step textarea { resize: vertical; }
.filter-panel input:focus, .filter-panel select:focus, .auth-panel input:focus, .wizard-step input:focus, .wizard-step textarea:focus, .wizard-step select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(23 72 63 / 9%); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.case-card { padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.case-card:hover { transform: translateY(-3px); border-color: #cad8d2; box-shadow: var(--shadow-sm); }
.case-card[hidden] { display: none; }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-category { display: inline-flex; width: fit-content; padding: 5px 9px; color: var(--green); background: #ecf4f1; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.case-number { color: #596863; font-size: 10px; }
.case-card h3 { margin-bottom: 9px; color: var(--navy); font-size: 19px; }
.case-card > p { min-height: 48px; color: var(--muted); font-size: 13px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; padding: 15px 0; border-block: 1px solid var(--line); }
.case-meta dt { color: #596863; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.case-meta dd { margin: 3px 0 0; color: #34443e; font-size: 11px; font-weight: 700; line-height: 1.35; }
.case-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #596863; font-size: 10px; }
.case-footer button { padding: 0; color: var(--navy); background: transparent; border: 0; font-size: 11px; font-weight: 800; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; background: white; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.journey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.journey-card { padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.journey-professional { background: var(--surface-blue); }
.journey-label { display: inline-flex; margin-bottom: 24px; padding: 7px 11px; color: var(--green); background: #edf5f2; border-radius: 999px; font-size: 11px; font-weight: 800; }
.journey-card ol { padding: 0; margin: 0; list-style: none; counter-reset: journey; }
.journey-card li { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 72px; padding: 0 0 21px 48px; counter-increment: journey; }
.journey-card li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 35px; bottom: 0; width: 1px; background: var(--line-strong); }
.journey-card li::before { content: counter(journey); position: absolute; left: 0; top: 0; width: 35px; height: 35px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 11px; font: 800 12px/1 var(--font-display); }
.journey-professional li::before { background: var(--navy); }
.journey-card li strong { color: var(--navy); font-size: 15px; }
.journey-card li span { color: var(--muted); font-size: 12px; }

.professionals-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.professionals-layout .section-lead { max-width: 520px; margin-bottom: 26px; }
.lawyer-cards { display: grid; gap: 13px; }
.lawyer-card { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgb(16 47 77 / 6%); }
.lawyer-avatar { width: 72px; height: 72px; display: grid; place-items: center; color: white; border-radius: 13px; font: 800 20px/1 var(--font-display); }
.avatar-one { background: linear-gradient(145deg, #35695f, #173d36); }
.avatar-two { background: linear-gradient(145deg, #315679, #102f4d); }
.avatar-three { background: linear-gradient(145deg, #d39447, #a4641c); }
.verified { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.lawyer-card h3 { margin: 3px 0 0; color: var(--navy); font-size: 17px; }
.lawyer-card p { margin-bottom: 1px; color: var(--muted); font-size: 12px; }
.lawyer-card small { color: #87938f; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-grid button { min-height: 105px; display: flex; justify-content: space-between; align-items: flex-end; padding: 19px; color: var(--navy); text-align: left; background: white; border: 1px solid var(--line); border-radius: 16px; font-weight: 800; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.category-grid button:hover { transform: translateY(-2px); border-color: #bccfc7; box-shadow: var(--shadow-sm); }
.category-grid span { color: var(--orange); }

.privacy-panel { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 38px; align-items: center; padding: 46px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgb(16 47 77 / 6%); }
.privacy-panel h2 { max-width: 600px; font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.privacy-panel > div > p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-graphic { position: relative; height: 150px; }
.hex { position: absolute; display: grid; place-items: center; color: white; background: var(--green); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0% 50%); font: 800 28px/1 var(--font-display); }
.hex-large { width: 94px; height: 108px; top: 14px; left: 8px; }
.hex-small { width: 42px; height: 48px; right: 1px; bottom: 2px; background: var(--orange); }
.privacy-line { position: absolute; width: 70px; height: 1px; right: 18px; bottom: 39px; background: #c8d6d1; transform: rotate(-32deg); transform-origin: right; }
.privacy-points { display: grid; gap: 13px; }
.privacy-points > div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.privacy-points > div > span { color: var(--orange); font: 800 11px/1.6 var(--font-display); }
.privacy-points p { margin: 0; color: var(--muted); font-size: 11px; }
.privacy-points strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; align-items: stretch; }
.price-card { position: relative; min-height: 405px; display: flex; flex-direction: column; justify-content: space-between; padding: 29px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.price-card.featured { border: 2px solid var(--green); box-shadow: 0 18px 52px rgb(23 72 63 / 11%); transform: translateY(-8px); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 12px; color: white; background: var(--green); border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.plan-name { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.price-card h3 { margin: 14px 0 2px; color: var(--navy); font-size: 39px; }
.price-card h3 small { color: var(--muted); font: 600 12px/1 var(--font-body); letter-spacing: 0; }
.price-card > div > p { color: var(--muted); font-size: 12px; }
.price-card ul { padding: 0; margin: 27px 0; list-style: none; }
.price-card li { display: flex; gap: 9px; margin-bottom: 12px; color: #46554f; font-size: 12px; }
.price-card li span { color: var(--green); font-weight: 800; }
.pricing-note { max-width: 720px; margin: 25px auto 0; color: var(--muted); text-align: center; font-size: 11px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.product-card { position: relative; min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 27px; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.product-professionals { border-top: 4px solid var(--navy-soft); }
.product-office { border-top: 4px solid var(--green); }
.product-viewyou { border-top: 4px solid var(--orange); }
.product-card small { display: inline-block; margin-bottom: 10px; color: var(--muted); font-weight: 800; letter-spacing: .11em; }
.product-card h3 { max-width: 310px; font-size: 21px; }
.product-card a, .product-card button { padding: 0; color: var(--green); background: none; border: 0; font-weight: 800; font-size: 12px; }
.product-logo { display: block; width: min(250px, 82%); height: auto; margin: 4px 0 30px; object-fit: contain; object-position: left center; }
.viewyou-logo-wrap { width: min(265px, 88%); height: 72px; margin-bottom: 26px; overflow: hidden; background: #fff; }
.product-logo-viewyou { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; mix-blend-mode: multiply; filter: contrast(1.08); }
.product-mark { position: relative; width: 112px; height: 82px; align-self: flex-end; color: var(--navy); opacity: .75; }
.product-mark span { position: absolute; width: 45px; height: 52px; border: 1px solid currentColor; opacity: .26; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.product-mark span:nth-child(1) { left: 0; top: 23px; background: currentColor; opacity: .09; }
.product-mark span:nth-child(2) { left: 34px; top: 0; }
.product-mark span:nth-child(3) { left: 68px; top: 26px; background: var(--orange); border: 0; opacity: .78; }

.final-cta { padding: 70px 0; background: white; border-top: 1px solid var(--line); }
.final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 42px 48px; background: var(--surface-blue); border: 1px solid #e0e7ec; border-radius: var(--radius-lg); }
.final-cta span { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.final-cta h2 { margin: 6px 0 7px; color: var(--navy); }
.final-cta p { margin: 0; color: var(--muted); }

.site-footer { color: #aeb9c0; background: #0b253c; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 60px; padding: 62px 0 48px; }
.footer-logo { width: 195px; }

.profile-completion { margin-bottom: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.profile-completion > p { margin-top: -4px; color: var(--muted); font-size: 12px; }
.verified-notice { padding: 10px 12px; color: var(--green); background: #edf7f3; border-radius: 10px; font-weight: 800; }

/* Bezpieczny panel konta */
.panel-topbar { position: sticky; top: 0; z-index: 20; min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 12px max(24px, calc((100vw - 1320px) / 2)); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.panel-topbar .brand-logo { width: 190px; }
.panel-top-actions { display: flex; align-items: center; gap: 18px; }
.panel-top-actions > a { color: var(--navy); font-size: 13px; font-weight: 700; }
.panel-shell { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 260px minmax(0, 1fr); background: #f7f9f8; }
.panel-sidebar { position: sticky; top: 78px; height: calc(100vh - 78px); padding: 30px 22px; background: white; border-right: 1px solid var(--line); }
.panel-user { display: block; padding: 0 10px 25px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-user small, .panel-user strong, .panel-user em { display: block; overflow: hidden; text-overflow: ellipsis; }
.panel-user small { margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.panel-user strong { color: var(--navy); font-size: 13px; }
.panel-user em { margin-top: 4px; color: var(--green); font-size: 11px; font-style: normal; }
.panel-sidebar nav { display: grid; gap: 4px; }
.panel-sidebar nav button { padding: 12px 14px; color: #42534c; background: transparent; border: 0; border-radius: 10px; text-align: left; font-weight: 700; }
.panel-sidebar nav button:hover, .panel-sidebar nav button.active { color: var(--green); background: #edf5f2; }
.panel-content { position: relative; width: 100%; max-width: 1180px; min-height: 700px; padding: 48px 48px 90px; }
.panel-loading { position: absolute; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; background: rgba(247,249,248,.88); }
.panel-loading span { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .75s linear infinite; }
.panel-loading p { color: var(--muted); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.panel-heading > div > span { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.panel-heading h1 { margin: 5px 0 5px; color: var(--navy); font-size: clamp(29px, 4vw, 42px); }
.panel-heading p { margin: 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.summary-card { position: relative; min-height: 150px; padding: 23px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.summary-card::after { content: ""; position: absolute; width: 72px; height: 82px; right: -24px; top: -25px; background: #e8eeeb; opacity: .6; clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); }
.summary-card.accent-green::after { background: #b9d7cc; }
.summary-card.accent-navy::after { background: #b8cddd; }
.summary-card.accent-orange::after { background: #f5c79f; }
.summary-card strong, .summary-card span, .summary-card small { display: block; }
.summary-card strong { margin-bottom: 14px; color: var(--navy); font: 800 27px/1.1 var(--font-display); }
.summary-card span { color: var(--text); font-size: 12px; font-weight: 800; }
.summary-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.panel-card, .managed-case { padding: 25px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 28px rgba(15,47,39,.035); }
.panel-card + .panel-card { margin-top: 18px; }
.card-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.card-heading small { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 21px; }
.activity-list { display: grid; }
.activity-list > div { display: grid; grid-template-columns: 155px minmax(0,1fr) 100px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.activity-list span, .activity-list small { color: var(--muted); font-size: 11px; }
.activity-list strong { color: var(--text); font-size: 13px; }
.panel-list { display: grid; gap: 16px; margin-bottom: 20px; }
.managed-case { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; }
.managed-case h2 { margin: 10px 0 8px; color: var(--navy); font-size: 21px; }
.managed-case p { max-width: 760px; margin: 0; color: var(--muted); }
.managed-case small { margin-left: 10px; color: var(--muted); }
.status-pill { display: inline-block; padding: 5px 8px; color: var(--navy); background: #eef2f5; border-radius: 99px; font-size: 10px; font-weight: 800; }
.status-published, .status-paid { color: var(--green); background: #eaf6f1; }
.status-closed, .status-archived, .status-cancelled { color: #6a7470; background: #eef1ef; }
.status-rejected, .status-past_due { color: #9c3c2d; background: #fff0ed; }
.case-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: flex-start; }
.case-edit-form { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
.case-edit-form > label, .panel-form > label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--navy); font-size: 11px; font-weight: 800; }
.case-edit-form input, .case-edit-form textarea, .panel-form input, .panel-form textarea, .panel-otp input { width: 100%; padding: 12px 13px; color: var(--text); background: white; border: 1px solid #dbe4df; border-radius: 9px; font: 500 13px var(--font-body); }
.compact-plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.compact-plans button { position: relative; display: grid; gap: 3px; padding: 17px; text-align: left; background: #f7f9f8; border: 1px solid var(--line); border-radius: 12px; }
.compact-plans button:hover { border-color: var(--green); }
.compact-plans strong { color: var(--navy); }
.compact-plans span { color: var(--muted); font-size: 11px; }
.compact-plans em { position: absolute; top: -8px; right: 8px; padding: 3px 6px; color: white; background: var(--orange); border-radius: 99px; font-size: 8px; font-style: normal; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { padding: 10px 12px; color: var(--muted); background: #f7f9f8; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap td { padding: 13px 12px; color: #42534c; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: top; }
.table-wrap td strong, .table-wrap td small { display: block; }
.table-wrap td small { margin-top: 4px; color: var(--muted); }
.table-wrap code { color: var(--navy); font-size: 10px; }
.table-button { padding: 5px 7px; margin: 0 3px 3px 0; color: var(--green); background: #edf5f2; border: 0; border-radius: 6px; font-size: 9px; font-weight: 800; }
.panel-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel-columns .panel-card { margin: 0; }
.panel-form fieldset { padding: 18px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px; }
.panel-form legend { padding: 0 7px; color: var(--navy); font-weight: 800; }
.panel-otp { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel-otp > div { display: flex; gap: 8px; margin-top: 10px; }
.panel-otp input { max-width: 170px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 800; }
.danger-card { display: flex; justify-content: space-between; align-items: center; gap: 25px; border-color: #f0d8d3; }
.danger-card > div:last-child { display: flex; gap: 8px; flex-shrink: 0; }
.button-danger { color: white; background: #a94635; border-color: #a94635; }
.button-danger:hover { background: #8d382b; }
.narrow-card { max-width: 760px; }
.panel-empty { color: var(--muted); }
.empty-panel { display: grid; min-height: 60vh; place-content: center; justify-items: center; text-align: center; }
.empty-icon { display: grid; width: 65px; height: 65px; place-items: center; margin-bottom: 16px; color: white; background: var(--green); border-radius: 18px; font-weight: 800; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.admin-tabs button { padding: 9px 12px; white-space: nowrap; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 800; }
.admin-tabs button.active { color: white; background: var(--navy); border-color: var(--navy); }
.confirm-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.confirm-dialog .modal-panel { position: relative; z-index: 1; width: min(500px, 100%); }
.confirm-dialog label { display: grid; gap: 7px; margin: 18px 0; font-size: 12px; }
.confirm-dialog input { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

@media (max-width: 1000px) {
  .panel-shell { grid-template-columns: 210px minmax(0,1fr); }
  .panel-content { padding: 35px 25px 70px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .panel-columns { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .panel-topbar { min-height: 66px; padding: 10px 15px; }
  .panel-topbar .brand-logo { width: 150px; }
  .panel-top-actions > a { display: none; }
  .panel-shell { display: block; }
  .panel-sidebar { position: sticky; top: 66px; z-index: 15; width: 100%; height: auto; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-user { display: none; }
  .panel-sidebar nav { display: flex; gap: 5px; overflow-x: auto; }
  .panel-sidebar nav button { flex: 0 0 auto; padding: 9px 11px; font-size: 10px; }
  .panel-content { padding: 28px 15px 60px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { min-height: 125px; padding: 17px; }
  .summary-card strong { font-size: 22px; }
  .managed-case { grid-template-columns: 1fr; }
  .activity-list > div { grid-template-columns: 1fr; gap: 3px; }
  .compact-plans { grid-template-columns: 1fr; }
  .danger-card { align-items: flex-start; flex-direction: column; }
  .danger-card > div:last-child { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .summary-grid { grid-template-columns: 1fr; }
}
.footer-brand p { max-width: 300px; margin-top: 16px; font-size: 12px; }
.footer-main h3 { margin-bottom: 16px; color: white; font: 700 12px/1.2 var(--font-body); letter-spacing: 0; }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-main a, .footer-main button { padding: 0; color: #aeb9c0; background: transparent; border: 0; font-size: 11px; }
.footer-main a:hover, .footer-main button:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; border-top: 1px solid rgb(255 255 255 / 9%); font-size: 9px; }

.modal, .case-modal { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 18px; }
.modal[hidden], .case-modal[hidden], .toast[hidden], [hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(8 29 48 / 60%); backdrop-filter: blur(8px); }
.modal-panel, .case-modal-panel { position: relative; width: min(700px,100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 35px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.auth-panel { width: min(520px,100%); }
.role-panel { width: min(570px,100%); }
.wizard-panel { width: min(760px,100%); }
.case-modal-panel { width: min(550px,100%); }
.modal-close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 36px; height: 36px; color: var(--muted); background: var(--surface); border: 0; border-radius: 50%; font-size: 21px; }

.auth-brand { display: flex; align-items: center; gap: 12px; margin: 0 42px 22px 0; }
.auth-brand img { width: 42px; height: 42px; }
.auth-brand div { display: flex; flex-direction: column; }
.auth-brand span { color: var(--muted); font-size: 10px; }
.auth-brand strong { color: var(--navy); font: 800 21px/1.2 var(--font-display); }
.role-intro, .professional-auth-copy { margin: -7px 0 20px; color: var(--muted); font-size: 13px; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-options > button { min-height: 155px; display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; padding: 22px 18px; color: var(--ink); text-align: left; background: white; border: 1px solid var(--line-strong); border-radius: 17px; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.role-options > button:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-sm); }
.role-options > button > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.role-options strong { color: var(--navy); font: 800 18px/1.2 var(--font-display); text-transform: uppercase; }
.role-options small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.role-options b { color: var(--orange); }
.role-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; border-radius: 12px; font-weight: 900; }
.role-icon-professional { background: var(--navy); }
.role-icon-client { background: var(--green); }
[data-professional-auth-modal] .auth-brand img { width: 125px; height: auto; }
.auth-back { width: auto; margin: -12px 0 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; padding: 4px; background: var(--surface); border-radius: 12px; }
.auth-tabs button { padding: 9px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 12px; font-weight: 800; }
.auth-tabs button.active { color: var(--navy); background: white; box-shadow: 0 3px 12px rgb(16 47 77 / 8%); }
.social-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; color: #293936; background: white; border: 1px solid var(--line-strong); border-radius: 11px; font-size: 12px; font-weight: 800; }
.social-button:hover { border-color: #aabbb4; }
.service-announcement { padding: 9px 20px; color: white; background: var(--navy); text-align: center; font-size: 12px; font-weight: 700; }
.professional-connect { margin: 22px 0 16px; }
.professional-google { width: 100%; color: white; background: var(--navy); border-color: var(--navy); }
.professional-google span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--navy); background: white; border-radius: 50%; font-weight: 900; }
.professional-connect .auth-divider { margin: 17px 0; }
.professional-connect .panel-form { margin-bottom: 8px; }
.connected-professional { display: flex; align-items: center; gap: 13px; padding: 16px; color: var(--green-dark); background: #edf8f3; border: 1px solid #cce8dc; border-radius: 12px; }
.connected-professional > span { display: grid; flex: 0 0 34px; height: 34px; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.connected-professional strong, .connected-professional small { display: block; }
.connected-professional small { margin-top: 3px; color: var(--muted); }
.google-mark { color: #4285f4; font-weight: 900; }
.apple-button span { color: #111; font-size: 17px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #899590; font-size: 10px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-panel form { display: grid; gap: 13px; }
.checkbox { display: grid !important; grid-template-columns: 18px 1fr; align-items: start; }
.checkbox input { width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green); }
.checkbox a { color: var(--green); text-decoration: underline; }
.form-message, .form-error { min-height: 19px; margin: 12px 0 0; color: var(--danger); font-size: 11px; font-weight: 700; }
.form-message.success { color: var(--green); }

.wizard-kicker { color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.wizard-header h2 { margin: 6px 42px 5px 0; color: var(--navy); font-size: 27px; }
.wizard-header > p { max-width: 620px; margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.progress { height: 6px; overflow: hidden; background: var(--surface); border-radius: 999px; }
.progress span { display: block; width: 11.11%; height: 100%; background: linear-gradient(90deg,var(--green),var(--green-bright)); border-radius: inherit; transition: width 220ms ease; }
.progress-label { display: flex; justify-content: space-between; margin-top: 6px; color: #8a9692; font-size: 9px; }
.wizard-step { display: none; min-height: 290px; padding: 23px 0 16px; }
.wizard-step.active { display: block; animation: step-in 180ms ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
.step-question { display: block; margin-bottom: 17px; color: var(--navy); font: 800 18px/1.25 var(--font-display); }
.wizard-step label + label { margin-top: 14px; }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.suggest-button { margin-top: 14px; padding: 9px 13px; color: var(--green); background: #edf5f2; border: 0; border-radius: 10px; font-size: 11px; font-weight: 800; }
.preview-card { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.preview-card h3 { margin: 11px 0 6px; color: var(--navy); }
.preview-card > p { color: var(--muted); font-size: 12px; }
.preview-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.preview-meta span { padding: 4px 8px; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 9px; }
.protected-box, .locked-contact { display: flex; gap: 11px; align-items: flex-start; margin-top: 17px; padding: 13px; background: #edf5f2; border-radius: 11px; }
.protected-box > span, .locked-contact > span { color: var(--green); font-weight: 800; }
.protected-box p, .locked-contact p { margin: 0; color: var(--muted); font-size: 10px; }
.protected-box strong, .locked-contact strong { display: block; color: var(--green); font-size: 11px; }
.account-step, .publish-summary { max-width: 500px; margin: 12px auto; padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.account-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 13px; color: white; background: linear-gradient(135deg,var(--green),var(--navy-soft)); border-radius: 15px; font: 800 16px/1 var(--font-display); }
.account-step h3, .publish-summary h3 { margin-bottom: 6px; color: var(--navy); }
.account-step p, .publish-summary p { color: var(--muted); font-size: 12px; }
.account-step.signed-in { border-color: #a9c9bf; background: #f2f8f6; }
.otp-box { display: grid; gap: 13px; max-width: 510px; margin-inline: auto; }
.otp-box h3 { margin: 0; color: var(--navy); }
.otp-box > p { color: var(--muted); font-size: 11px; }
.success-mark { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 11px; color: white; background: var(--green); border-radius: 50%; font-weight: 800; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.wizard-actions [data-next-step], .wizard-actions [data-submit-step] { margin-left: auto; }
.case-modal-panel h2 { margin: 13px 42px 9px 0; color: var(--navy); font-size: 25px; }
.case-modal-panel > p { color: var(--muted); font-size: 13px; }
.locked-contact { margin: 21px 0; }
.toast { position: fixed; z-index: 800; right: 22px; bottom: 22px; max-width: min(390px,calc(100% - 44px)); padding: 13px 17px; color: white; background: var(--navy); border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 12px; }

@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: 69px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .button-ghost { display: none; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 28px; }
  .hero h1 { font-size: clamp(2.35rem,4.8vw,3.35rem); }
  .case-meta { grid-template-columns: repeat(2,1fr); }
  .privacy-panel { grid-template-columns: 120px 1fr; }
  .privacy-points { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .section { padding: 74px 0; }
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 680px; }
  .hero-image-wrap { max-width: none; margin-top: 8px; }
  .hero-image-wrap img { height: 360px; }
  .trust-strip { grid-template-columns: repeat(2,1fr); margin-top: 35px; }
  .trust-strip div:nth-child(2) { border-right: 0; }
  .trust-strip div:first-child { padding-left: 17px; }
  .split-heading, .journey-grid, .professionals-layout, .pricing-grid, .products-grid { grid-template-columns: 1fr; }
  .split-heading { gap: 5px; }
  .filter-panel { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .price-card.featured { transform: none; }
  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-graphic { display: none; }
  .privacy-points { grid-column: auto; grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px,1180px); }
  .site-header, .site-header.scrolled { height: 66px; }
  .brand-logo { width: 145px; }
  .header-actions .button { min-height: 36px; padding-inline: 11px; font-size: 10px; }
  .main-nav { top: 66px; left: 14px; right: 14px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-image-wrap { padding: 7px; border-radius: 22px 22px 52px 22px; }
  .hero-image-wrap img { height: 300px; border-radius: 16px 16px 45px 16px; }
  .floating-card-case { top: 15px; left: -5px; }
  .floating-card-secure { right: -4px; bottom: 18px; }
  .floating-card { padding: 8px 9px; }
  .trust-strip div { flex-direction: column; gap: 3px; padding: 16px 9px !important; }
  .trust-strip .trust-professionals strong { font-size: 11px; white-space: normal; }
  h2 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .case-card { padding: 20px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-footer { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid button { min-height: 82px; }
  .lawyer-card { grid-template-columns: 60px 1fr; padding: 14px; }
  .lawyer-avatar { width: 60px; height: 60px; }
  .privacy-panel { padding: 25px 20px; }
  .product-card { min-height: 245px; }
  .final-cta-inner { align-items: stretch; flex-direction: column; padding: 30px 23px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 7px; }
  .modal-panel, .case-modal-panel { max-height: calc(100vh - 14px); padding: 27px 18px 20px; border-radius: 18px; }
  .social-buttons, .form-grid { grid-template-columns: 1fr; }
  .role-options { grid-template-columns: 1fr; }
  .role-options > button { min-height: 112px; }
  .wizard-header h2 { font-size: 23px; }
  .wizard-step { min-height: 330px; }
  .progress-label span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.legal-document { background: var(--surface-blue); }
.legal-header { position: sticky; z-index: 20; top: 0; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px max(24px,calc((100vw - 1120px)/2)); background: rgb(255 255 255 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.legal-header .brand-logo { width: 190px; }
.legal-header-actions { display: flex; align-items: center; gap: 20px; }
.legal-header-actions > a:not(.button) { color: var(--green); font-size: 12px; font-weight: 800; }
.legal-hero { position: relative; overflow: hidden; padding: 72px 0 66px; background: white; border-bottom: 1px solid var(--line); }
.legal-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -220px; opacity: .55; border: 55px solid var(--surface-blue); border-radius: 50%; }
.legal-hero-inner { position: relative; z-index: 1; width: min(1120px,calc(100% - 40px)); margin: auto; }
.legal-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.legal-kicker::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.legal-hero h1 { max-width: 830px; margin: 15px 0 16px; color: var(--navy); font-size: clamp(2.7rem,6vw,5rem); line-height: 1.02; }
.legal-lead { max-width: 780px; margin-bottom: 36px; color: #4d5f59; font-size: clamp(1rem,2vw,1.2rem); line-height: 1.7; }
.legal-meta-grid { display: grid; grid-template-columns: .7fr 1fr 1.65fr 1.3fr; gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 18px; }
.legal-meta-grid > div { min-height: 100px; padding: 20px 22px; background: var(--surface); }
.legal-meta-grid span { display: block; margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-meta-grid strong, .legal-meta-grid a { display: block; color: var(--navy); font-size: 13px; line-height: 1.5; }
.legal-shell { width: min(1120px,calc(100% - 40px)); display: grid; grid-template-columns: 250px minmax(0,1fr); align-items: start; gap: 48px; margin: 0 auto; padding: 56px 0 100px; }
.legal-toc { position: sticky; top: 106px; max-height: calc(100vh - 132px); overflow: auto; padding: 25px 20px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.legal-toc > span { display: block; margin: 0 8px 15px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-toc nav { display: grid; }
.legal-toc a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 8px; color: #465750; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1.35; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--navy); background: var(--surface); }
.legal-toc b { color: var(--orange); font-size: 10px; }
.legal-content { min-width: 0; padding: clamp(28px,5vw,60px); background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.legal-notice { margin-bottom: 52px; padding: 20px 24px; color: #42534d; background: #fff8f2; border-left: 4px solid var(--orange); font-size: 13px; line-height: 1.7; }
.legal-notice strong { display: block; margin-bottom: 5px; color: #8b4d22; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.legal-section { scroll-margin-top: 106px; padding-bottom: 43px; margin-bottom: 43px; border-bottom: 1px solid var(--line); }
.legal-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.legal-section-number { display: block; margin-bottom: 8px; color: #be792f; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-section h2 { margin: 0 0 22px; color: var(--navy); font-size: clamp(1.7rem,3.2vw,2.4rem); line-height: 1.12; }
.legal-section p, .legal-section li { color: #465750; font-size: 14px; line-height: 1.8; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-section ol, .legal-section ul { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.legal-section ol { counter-reset: legal-item; }
.legal-section li { position: relative; min-height: 31px; padding-left: 46px; }
.legal-section ol li { counter-increment: legal-item; }
.legal-section ol li::before { content: counter(legal-item) "."; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center; color: #52645e; background: var(--surface-blue); border-radius: 8px; font-size: 10px; font-weight: 800; }
.legal-section ul li::before { content: ""; position: absolute; left: 9px; top: 11px; width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px #edf5f2; }
.legal-footer { padding: 28px 20px; color: #b8c3c9; background: #0b253c; text-align: center; font-size: 11px; }

@media (max-width: 900px) {
  .legal-meta-grid { grid-template-columns: repeat(2,1fr); }
  .legal-shell { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc nav { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .legal-header { min-height: 66px; padding-inline: 14px; }
  .legal-header .brand-logo { width: 145px; }
  .legal-header-actions > a:not(.button) { display: none; }
  .legal-hero { padding: 48px 0 42px; }
  .legal-hero-inner, .legal-shell { width: min(100% - 28px,1120px); }
  .legal-meta-grid { grid-template-columns: 1fr; }
  .legal-meta-grid > div { min-height: 0; padding: 15px 17px; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-content { padding: 28px 20px; border-radius: 18px; }
  .legal-section { scroll-margin-top: 84px; }
  .legal-section li { padding-left: 41px; }
}
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; background: #f7f9f8; }
.error-page img { width: 220px; margin-bottom: 35px; }
.error-page > span { color: var(--orange); font-weight: 800; letter-spacing: .15em; }
.error-page h1 { margin: 8px 0; color: var(--navy); }
.error-page p { margin-bottom: 24px; color: var(--muted); }
