/* Joshi Software Group legal pages — mirrors the tokens of the landing page (landing-page/public/style.css).
   Fonts are self-hosted so no request goes to Google when a page loads. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/outfit-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-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;
}

:root {
  --font-headline: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --primary: #4f46e5;          /* Indigo */
  --primary-hover: #4338ca;
  --primary-glow: rgb(79 70 229 / 0.12);
  --secondary: #06b6d4;        /* Cyan */
  --secondary-glow: rgb(6 182 212 / 0.12);
  --accent: #f59e0b;           /* Amber */
  --accent-glow: rgb(245 158 11 / 0.14);

  --light-bg: #f8fafc;         /* Slate 50 */
  --light-surface: #fff;
  --light-surface-high: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-body: #475569;

  --ring: rgb(15 23 42 / 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 20px rgb(15 23 42 / 0.03);
  --shadow-md: 0 12px 30px rgb(15 23 42 / 0.07);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 48rem; margin-inline: auto; }

/* Header — same as the landing page */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid rgb(15 23 42 / 0.05);
  background: rgb(248 250 252 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4.5rem;
}
.brand-link { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dark); min-width: 0; }
.brand-logo { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-headline); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.025em; white-space: nowrap;
}
@media (max-width: 380px) { .brand-name { font-size: 1.05rem; } }

.site-nav { display: none; align-items: center; gap: 2rem; }
.site-nav a, .footer-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition-fast);
}
.site-nav a:hover, .footer-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
@media (min-width: 720px) { .site-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; padding: 0.2rem; border-radius: 9999px;
  border: 1px solid rgb(15 23 42 / 0.1);
}
.lang-switch a {
  padding: 0.2rem 0.65rem; border-radius: 9999px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.lang-switch a:hover { color: var(--primary); }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 12px; background: var(--primary); color: #fff;
  padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 4px 14px rgb(79 70 229 / 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgb(79 70 229 / 0.35); }
.btn-hide-sm { display: none; }
@media (min-width: 900px) { .btn-hide-sm { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 8.5rem 0 3rem; }
.blob { pointer-events: none; position: absolute; border-radius: 50%; filter: blur(80px); }
.blob-primary { top: -4rem; right: 8%; width: 18rem; height: 18rem; background: var(--primary); opacity: 0.14; }
.blob-secondary { top: 9rem; left: -4rem; width: 15rem; height: 15rem; background: var(--secondary); opacity: 0.14; }
.blob-accent { bottom: 0; right: 30%; width: 9rem; height: 9rem; background: var(--accent); opacity: 0.1; filter: blur(60px); }
.hero .narrow { position: relative; }

.badge {
  display: inline-block; margin-bottom: 1.5rem;
  border-radius: 9999px; background: var(--primary-glow); padding: 0.35rem 0.85rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
}
.hero h1 {
  font-family: var(--font-headline); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; font-size: 2.25rem; color: var(--text-dark);
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.25rem; } }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--text-muted); }
.meta { margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* Contents */
.toc {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--light-surface); border: 1px solid rgb(15 23 42 / 0.04); box-shadow: var(--shadow-sm);
}
.toc ol { display: grid; gap: 0.35rem 1.5rem; counter-reset: toc; }
@media (min-width: 640px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 0.5rem; font-size: 0.95rem; font-weight: 500; color: var(--text-body); transition: color var(--transition-fast); }
.toc a::before { content: counter(toc) "."; color: var(--primary); font-family: var(--font-headline); font-weight: 700; min-width: 1.5rem; }
.toc a:hover { color: var(--primary); }

.eyebrow {
  font-family: var(--font-headline); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary);
}

main { padding-bottom: 5rem; }

.card {
  margin-top: 1.5rem; padding: 1.75rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--light-surface); border: 1px solid rgb(15 23 42 / 0.04); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) { .card { padding: 2.25rem 2.5rem; } }
.card:hover { box-shadow: var(--shadow-md); }

.card h2 {
  margin-top: 0.5rem; font-family: var(--font-headline); font-weight: 700;
  font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--text-dark);
}
.card h3 {
  margin-top: 1.75rem; font-family: var(--font-headline); font-weight: 700;
  font-size: 1.15rem; color: var(--text-dark);
}
.card h4 { margin-top: 1.25rem; font-weight: 600; font-size: 1rem; color: var(--text-dark); }
.card p, .card li { color: var(--text-body); }
.card p { margin-top: 0.75rem; }
.card strong { color: var(--text-dark); font-weight: 600; }
.card a:not(.btn) { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(79 70 229 / 0.3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.card a:not(.btn):hover { color: var(--secondary); text-decoration-color: currentColor; }

.card ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.card ul > li { position: relative; padding-left: 1.5rem; }
.card ul > li::before {
  content: ""; position: absolute; left: 0.25rem; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--secondary);
}

address { font-style: normal; margin-top: 0.75rem; color: var(--text-body); line-height: 1.75; }
address strong { color: var(--text-dark); }

.facts { margin-top: 1rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .facts { grid-template-columns: 11rem 1fr; gap: 0.5rem 1.5rem; } }
.facts dt { font-weight: 600; color: var(--text-dark); }
.facts dd { color: var(--text-body); }
@media (max-width: 639px) { .facts dd { margin-top: -0.5rem; } }

.callout {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border: 1px solid rgb(79 70 229 / 0.12);
}
.callout p:first-child { margin-top: 0; }
.callout.coral { background: linear-gradient(135deg, var(--accent-glow), rgb(245 158 11 / 0.05)); border-color: rgb(245 158 11 / 0.2); }
.callout.sunny { background: var(--accent-glow); border-color: rgb(245 158 11 / 0.2); }

.chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; padding: 0.3rem 0.8rem; font-size: 0.8125rem; font-weight: 600;
  background: var(--primary-glow); color: var(--primary);
}
.chip.mint { background: var(--secondary-glow); color: #0e7490; }
.chip.peach { background: var(--accent-glow); color: #b45309; }

.table-wrap { margin-top: 1rem; overflow-x: auto; border-radius: var(--radius); border: 1px solid rgb(15 23 42 / 0.08); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; }
th { font-family: var(--font-headline); font-weight: 700; color: var(--text-dark); background: var(--light-surface-high); }
td { color: var(--text-body); border-top: 1px solid rgb(15 23 42 / 0.06); }
td:first-child { color: var(--text-dark); font-weight: 600; }

/* Unfilled details the operator still has to provide */
.ph {
  background: rgb(253 224 71 / 0.6); color: var(--text-dark);
  border-radius: 0.375rem; padding: 0 0.375rem; font-weight: 700;
}

/* Footer — same as the landing page */
.site-footer { border-top: 1px solid rgb(15 23 42 / 0.05); background: var(--light-surface); padding-block: 3.5rem; }
.footer-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .footer-row { flex-direction: row; text-align: left; } }
.footer-logo-text { font-family: var(--font-headline); font-weight: 700; font-size: 1.15rem; color: var(--text-dark); }
.footer-brand p:last-child { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.footer-brand a:hover { color: var(--primary); }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.footer-nav a { font-size: 0.85rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 0.25rem; }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up 0.7s ease-out both; }
@media (prefers-reduced-motion: reduce) { .animate-fade-up { animation: none; } html { scroll-behavior: auto; } }

/* Language switching: without JS both languages show; with JS only the chosen one. */
html[data-show="de"] [data-lang="en"],
html[data-show="en"] [data-lang="de"] { display: none !important; }

@media print {
  .site-header, .lang-switch, .blob, .toc, .site-footer, .jsg-footer { display: none !important; }
  .hero { padding-top: 0; }
  .gradient-text { -webkit-text-fill-color: currentColor; background: none; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid-page; }
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--light-surface-high); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
