/* Digitana Accounting: zentrale interne Rechtstexte im bestehenden Designsystem. */
.accounting-legal-shell {
  width: min(calc(100% - 3rem), var(--content-width));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.accounting-legal-panel {
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.accounting-legal-head {
  padding-bottom: 0.25rem;
}

.accounting-legal-head h1 {
  margin: 0;
  color: var(--color-blue-deep);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.accounting-legal-meta {
  margin: 0.55rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.accounting-legal-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.accounting-legal-section h2 {
  margin: 0 0 0.65rem;
  color: var(--color-blue-deep);
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.accounting-legal-section p {
  margin: 0 0 0.65rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.accounting-legal-section p:last-child {
  margin-bottom: 0;
}

.accounting-legal-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.accounting-legal-list li + li {
  margin-top: 0.3rem;
}

.accounting-legal-contact {
  display: grid;
  gap: 0.25rem;
}

.accounting-legal-shell a {
  color: var(--color-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.accounting-legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.accounting-legal-table-wrap:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.accounting-legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.accounting-legal-table th,
.accounting-legal-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
}

.accounting-legal-table tr:last-child th,
.accounting-legal-table tr:last-child td {
  border-bottom: 0;
}

.accounting-legal-table th {
  width: 34%;
  background: var(--color-surface-soft);
  color: var(--color-blue-deep);
  font-weight: 800;
}

.accounting-legal-table td {
  color: var(--color-text-soft);
}

html[data-theme="dark"] .accounting-legal-panel,
html[data-theme="dark"] .accounting-legal-table-wrap,
html[data-theme="dark"] .accounting-legal-table {
  background: var(--color-surface-soft);
}
