/* Epistles — legal / support pages (Letterpress retint).
   Same selectors as legal-new.css; cool-blue + older callout RGBs swapped
   for Letterpress terracotta + brand-aligned amber/danger/green hexes. */

/* Main wrapper — narrower than marketing so text is readable. */
.en-legal {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px);
  position: relative;
  z-index: 1;
}

.en-legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Effective-date banner at the top of terms / privacy. */
.en-legal__stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(210, 112, 83, 0.1);
  border: 1px solid rgba(210, 112, 83, 0.28);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--accent-hover);
}

.en-legal__stamp-label {
  color: var(--muted-2);
}

/* Title + lede under it. */
.en-legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.en-legal__lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 56ch;
}

/* Section headings. */
.en-legal__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 48px 0 14px;
  color: var(--text);
}

.en-legal__inner h2:first-of-type {
  margin-top: 0;
}

.en-legal__inner h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 28px 0 10px;
  color: var(--text);
}

.en-legal__inner p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.en-legal__inner ul,
.en-legal__inner ol {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 20px;
}

.en-legal__inner li {
  margin-bottom: 8px;
}

.en-legal__inner a {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 112, 83, 0.3);
  transition: color 0.15s, border-color 0.15s;
}

.en-legal__inner a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.en-legal__inner strong {
  color: var(--text);
  font-weight: 600;
}

/* Callout — neutral / warn / danger. */
.en-legal__callout {
  padding: 20px 22px;
  margin: 24px 0;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.en-legal__callout h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}

.en-legal__callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.en-legal__callout--warn {
  background: linear-gradient(160deg, rgba(255, 184, 74, 0.08), var(--bg-elev));
  border-color: rgba(255, 184, 74, 0.28);
}

.en-legal__callout--warn h3 {
  color: var(--amber);
}

.en-legal__callout--danger {
  background: linear-gradient(160deg, rgba(255, 107, 92, 0.08), var(--bg-elev));
  border-color: rgba(255, 107, 92, 0.28);
}

.en-legal__callout--danger h3 {
  color: var(--danger);
}

/* Contact block at the foot of the prose. */
.en-legal__contact {
  padding: 20px 22px;
  margin: 20px 0;
  border-radius: var(--r-lg);
  background: rgba(210, 112, 83, 0.06);
  border: 1px solid rgba(210, 112, 83, 0.22);
}

.en-legal__contact p {
  margin-bottom: 6px;
  color: var(--text);
}

.en-legal__contact p:last-child {
  margin-bottom: 0;
}

.en-legal__footnote {
  color: var(--muted-2);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Support form. */
.en-support-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.en-support-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.en-support-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.en-support-form input[type="text"],
.en-support-form input[type="email"],
.en-support-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.en-support-form input[type="text"]::placeholder,
.en-support-form input[type="email"]::placeholder,
.en-support-form textarea::placeholder {
  color: var(--muted-2);
}

.en-support-form input[type="text"]:focus,
.en-support-form input[type="email"]:focus,
.en-support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(210, 112, 83, 0.08);
}

.en-support-form textarea {
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.en-support-form button {
  align-self: flex-start;
  margin-top: 4px;
}

/* Result banner above the form. */
.en-support-banner {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.en-support-banner--ok {
  background: rgba(93, 209, 123, 0.1);
  border: 1px solid rgba(93, 209, 123, 0.35);
  color: var(--green);
}

.en-support-banner--err {
  background: rgba(255, 107, 92, 0.1);
  border: 1px solid rgba(255, 107, 92, 0.35);
  color: var(--danger);
}

/* Security page — flow chart figure (inline SVG + caption). */
.en-flow {
  margin: 24px 0 36px;
  padding: 0;
}

.en-flow svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
}

.en-flow__cap {
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.en-flow__cap p {
  margin: 0 0 0.75rem 0;
}

.en-flow__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-2);
}

.en-flow__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.en-flow__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
}

.en-flow__swatch--opaque  { background: var(--accent); }
.en-flow__swatch--meta    { background: var(--muted-2); }
.en-flow__swatch--content { background: var(--text); }

@media (max-width: 720px) {
  .en-flow__cap { font-size: 0.9rem; }
  .en-flow__legend { font-size: 0.72rem; gap: 0.5rem 1rem; }
}

/* Security page — "What our servers do see" definition list. */
.en-server-sees {
  margin: 0 0 24px;
  padding: 0;
}

.en-server-sees dt {
  margin: 24px 0 6px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.en-server-sees dt:first-child {
  margin-top: 0;
}

.en-server-sees dd {
  margin: 0 0 4px;
  padding: 0;
  color: var(--muted);
  line-height: 1.7;
}


/* /security/ flow chart: hide the wide SVG on phones; surface the
 * <desc> as visible prose for the mobile path so the page doesn't
 * lose its centerpiece. The SVG remains in DOM so screen readers
 * still announce the title/desc; only the visual is hidden. */
@media (max-width: 720px) {
  .en-flow svg {
    display: none;
  }
  .en-flow::before {
    content: "The flow diagram is best read on a wider screen. The text below this section walks through the same flow.";
    display: block;
    padding: 16px 18px;
    margin: 0 0 16px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }
}
