/* Legal pages of SmartCtrl on appxcellence.net: same type and colours as the product page. */
:root {
  --ink: #120036; --text: #545465; --muted: #6c757d; --brand: #9370db; --brand-dark: #7a55cf;
  --lav: #f6f2fe; --lav-2: #ebe3fc; --line: #e8e4f1; --white: #ffffff;
  --head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.75 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--white); padding: 8px 12px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--ink); }
.nav .pill { color: var(--ink); border: 2px solid var(--ink); border-radius: 36px; padding: 8px 20px; font-weight: 500; }
.nav .pill:hover { background: var(--ink); color: var(--white); }
@media (max-width: 860px) { .nav a:not(.pill) { display: none; } }

.legal-head { background: radial-gradient(900px 420px at 10% -20%, var(--lav-2), transparent 70%), linear-gradient(180deg, var(--lav), var(--white)); padding-block: clamp(36px, 6vw, 72px) 36px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.legal-head .app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.legal-head .app-id img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 8px 20px rgba(18,0,54,.16); }
.legal-head .app-id span { font: 600 15px/1.3 var(--body); color: var(--ink); }
.legal-head h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; }
.legal-head .meta { margin-top: 14px; font-size: 15px; color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.langs a, .langs span { display: inline-block; font: 500 14px/1 var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-decoration: none; color: var(--ink); background: var(--white); }
.langs span { background: var(--ink); border-color: var(--ink); color: var(--white); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: 40px 20px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; font: 600 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-dark); }
.doc { max-width: 760px; }
.doc h2 { font-size: 25px; line-height: 1.3; margin: 46px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.summary { background: var(--lav); border: 1px solid var(--lav-2); border-radius: 18px; padding: 24px 26px; margin-bottom: 40px; }
.summary h2 { font-size: 20px; margin: 0 0 12px !important; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.summary li { position: relative; padding-left: 28px; margin: 0; font-size: 15px; line-height: 1.55; }
.summary li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%237a55cf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 6px 0 18px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { font: 600 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--lav); }
.contact-card { border: 2px solid var(--brand); border-radius: 16px; padding: 22px 24px; background: linear-gradient(180deg, var(--lav), var(--white)); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 34px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
  .summary ul { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .site-header, .toc, .langs, .site-footer nav { display: none; }
  .legal { display: block; }
  body { font-size: 12pt; }
}
