.home-legal-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.home-legal-menu summary {
  list-style: none;
  cursor: pointer;
  color: #31484b;
  font-size: .95rem;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  font-weight: 800;
}

.home-legal-menu summary::-webkit-details-marker {
  display: none;
}

.home-legal-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 50;
  display: grid;
  min-width: 248px;
  padding: 10px;
  border: 1px solid rgba(16, 35, 38, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(16, 35, 38, .16);
}

.home-legal-menu div a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #102326;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  text-decoration: none;
  white-space: nowrap;
}

.home-legal-menu div a:hover {
  background: #f1f5f3;
}

.legal-document {
  background: #f6f5ef;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding: 64px 0 54px;
  position: relative;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 3.7vw, 4.05rem);
  line-height: 1.06;
}

.legal-hero p {
  max-width: 760px;
  color: #425b5f;
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.68;
}

.legal-panel {
  border: 1px solid rgba(16, 35, 38, .12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(216,229,231,.72)),
    #fff;
  box-shadow: 0 24px 62px rgba(16, 35, 38, .12);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.legal-panel::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -58px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,63,70,.18), transparent 68%);
}

.legal-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-meta div {
  padding: 14px;
  border-radius: 8px;
  background: #eef3f1;
}

.legal-meta dt {
  color: #0e4a51;
  font-size: .76rem;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-meta dd {
  margin: 4px 0 0;
  color: #102326;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  font-weight: 850;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 72px;
}

.legal-index {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(16, 35, 38, .12);
  border-radius: 8px;
  background: linear-gradient(160deg, #0a2c31, #123f45 68%, #6f6456);
  box-shadow: 0 22px 58px rgba(15, 63, 70, .16);
}

.legal-index a {
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.86);
  font-size: .92rem;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  font-weight: 850;
  text-decoration: none;
}

.legal-index a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-section {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(16, 35, 38, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    #fff;
  box-shadow: 0 20px 52px rgba(16, 35, 38, .08);
  position: relative;
  overflow: hidden;
}

.legal-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0a2c31, #b89562);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.1;
}

.legal-section h3 {
  margin: 20px 0 8px;
  color: #0e4a51;
  font-size: 1.02rem;
}

.legal-section p,
.legal-section li {
  color: #425b5f;
  font-family: var(--praisi-public-body, "Playfair Display", Georgia, serif);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-callout {
  border-color: rgba(14, 74, 81, .18);
  background: linear-gradient(135deg, rgba(15, 63, 70, .12), rgba(184, 149, 98, .14));
}

.policy-viewer-hero {
  padding-top: 52px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .44fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 78px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #102326;
  font-family: var(--praisi-public-head, "Cinzel", Georgia, serif);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(16,35,38,.16);
  border-radius: 8px;
  background: #fff;
  color: #102326;
  padding: 13px 14px;
  font-family: var(--praisi-public-body, "Playfair Display", Georgia, serif);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-recaptcha {
  min-height: 78px;
}

.contact-message {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef3f1;
  color: #102326;
  font-weight: 800;
}

.contact-message:empty {
  display: none;
}

.contact-message.ok {
  background: #ecf7f1;
  color: #2f7a65;
}

.contact-message.err {
  background: #fff0ee;
  color: #9f3a3a;
}

.contact-message.info {
  background: #eef6f7;
  color: #0a2c31;
}

.contact-side {
  display: grid;
  gap: 16px;
}

.policy-viewer-layout {
  grid-template-columns: 240px minmax(0, 820px);
  justify-content: center;
}

.policy-viewer-content .legal-section,
.policy-document-body {
  max-width: 820px;
}

.policy-document-body {
  color: #263f43;
  font-size: 1.02rem;
  line-height: 1.75;
}

.policy-document-body h1,
.policy-document-body h2,
.policy-document-body h3 {
  color: #102326;
  letter-spacing: 0;
}

.policy-document-body h1 {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.policy-document-body h2 {
  margin: 32px 0 12px;
  padding-top: 6px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.18;
}

.policy-document-body h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.policy-document-body p {
  margin: 0 0 14px;
  color: #31484b;
  font-size: 1.02rem;
  line-height: 1.78;
}

.policy-document-body ul,
.policy-document-body ol {
  margin: 10px 0 18px;
  padding-left: 24px;
}

.policy-document-body li {
  margin: 0 0 8px;
}

.policy-document-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow-wrap: anywhere;
}

.policy-document-body th,
.policy-document-body td {
  padding: 12px;
  border: 1px solid rgba(16, 35, 38, .14);
  text-align: left;
  vertical-align: top;
}

.policy-document-body th {
  background: #eef3f1;
  color: #102326;
}

.policy-document-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  border-radius: 8px;
  background: #eef3f1;
  color: #263f43;
}

.praisi-commercial-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(320px, calc(100vw - 36px));
}

.praisi-commercial-badge > * {
  max-width: 100%;
}

@media (max-width: 980px) {
  .legal-hero,
  .legal-layout,
  .contact-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }

  .home-legal-menu {
    display: none;
  }
}
