/* Path: static/css/style.css */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  color-scheme: dark;

  --background: #090708;
  --panel: #151012;
  --panel-light: #21171a;
  --editor: #060506;
  --border: #3d292f;
  --text: #f3edef;
  --muted: #a18d93;
  --primary: #7f102b;
  --primary-hover: #981638;
  --primary-soft: rgba(127, 16, 43, 0.16);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    "Segoe UI",
    "Noto Sans",
    "Noto Sans JP",
    "Noto Sans KR",
    Arial,
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 auto;
  min-height: 72px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #0e0a0b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: 25px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  margin: 0 0 4px;
  font-size: 25px;
}

.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.language-picker {
  flex: 0 0 200px;
}

.language-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-select-layout {
  position: relative;
  width: 100%;
}

.language-globe {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.language-globe svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-picker .custom-select {
  margin-bottom: 0;
}

.language-picker .custom-select-trigger {
  height: 42px;
  padding: 0 14px 0 44px;
  background: #171012;
}

.language-picker .custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-picker .custom-select-trigger:hover,
.language-picker .custom-select.open .custom-select-trigger {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.language-select-layout:has(.custom-select-trigger:hover) .language-globe,
.language-select-layout:has(.custom-select-trigger:focus-visible) .language-globe,
.language-select-layout:has(.custom-select.open) .language-globe {
  color: var(--text);
}

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.control-panel,
.editor-panel {
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.control-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
}

.control-group {
  margin-bottom: 21px;
}

.control-group h2 {
  margin: 0 0 11px;
  font-size: 14px;
}

.control-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

input[type="number"],
select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--panel-light);
  color: var(--text);
}

input[type="number"]:focus,
select:focus {
  border-color: var(--primary);
}

input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input[type="range"] {
  --range-progress: 0%;

  width: 100%;
  height: 16px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--range-progress),
    #514047 var(--range-progress),
    #514047 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: #514047;
}

input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.upload-box {
  min-height: 92px;
  border: 1px dashed #596273;
  border-radius: 9px;
  background: var(--panel-light);
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-box:hover {
  border-color: var(--primary);
  background: #292e39;
}

.upload-box strong {
  color: var(--text);
  font-size: 13px;
}

.upload-box span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.upload-box small {
  margin-top: 3px;
  color: #7f899a;
  font-size: 10px;
}

body.drag-active .upload-box {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(127, 16, 43, 0.12);
}

.checkbox-card {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 12px !important;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-light);
  cursor: pointer;
}

.checkbox-card input {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.checkbox-card input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkbox-content strong {
  color: var(--text);
  font-size: 12px;
}

.checkbox-content small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.resize-controls {
  margin-top: 10px;
}

.info-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.range-value {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.button-group {
  display: grid;
  gap: 9px;
}

.history-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.button-group button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

.button-group button:hover:not(:disabled) {
  background: var(--primary-hover);
}

.button-group button.secondary {
  border: 1px solid var(--border);
  background: var(--panel-light);
}

.button-group button.secondary:hover:not(:disabled) {
  background: #2c313d;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-tabs {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--border);
  background: #110c0e;
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.image-tab {
  max-width: 220px;
  min-width: 96px;
  height: 32px;
  padding: 0 6px 0 10px;
  border: 1px solid #2a2f39;
  border-bottom-color: var(--border);
  border-radius: 8px 8px 0 0;
  background: #242833;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-tab:hover {
  background: #2d3340;
  color: var(--text);
}

.image-tab.active {
  border-color: var(--border);
  border-bottom-color: var(--panel);
  background: var(--panel);
  color: var(--text);
}

.image-tab-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.image-tab-dirty {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.image-tab-close {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.image-tab-close:hover {
  background: #3b414d;
}

.editor-header {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.editor-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.editor-header strong {
  font-size: 13px;
}

.editor-header span {
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 18px;
}

.empty-state span {
  font-size: 13px;
}

.editor-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.image-area {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(45deg, #11141a 25%, transparent 25%),
    linear-gradient(-45deg, #11141a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #11141a 75%),
    linear-gradient(-45deg, transparent 75%, #11141a 75%), var(--editor);
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

.image-container {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.55);
  user-select: none;
}

#previewImage {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-box {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.58);
  cursor: move;
  touch-action: none;
}

.crop-grid {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.32);
}

.vertical-grid {
  top: 0;
  bottom: 0;
  width: 1px;
}

.horizontal-grid {
  left: 0;
  right: 0;
  height: 1px;
}

.vertical-grid.first {
  left: 33.333%;
}

.vertical-grid.second {
  left: 66.666%;
}

.horizontal-grid.first {
  top: 33.333%;
}

.horizontal-grid.second {
  top: 66.666%;
}

.crop-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 3px solid white;
  border-radius: 0;
  background: transparent;
  z-index: 2;
}

.handle-nw {
  top: -3px;
  left: -3px;
  border-right: 0;
  border-bottom: 0;
  cursor: nwse-resize;
}

.handle-ne {
  top: -3px;
  right: -3px;
  border-left: 0;
  border-bottom: 0;
  cursor: nesw-resize;
}

.handle-sw {
  bottom: -3px;
  left: -3px;
  border-top: 0;
  border-right: 0;
  cursor: nesw-resize;
}

.handle-se {
  right: -3px;
  bottom: -3px;
  border-top: 0;
  border-left: 0;
  cursor: nwse-resize;
}

.editor-footer {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 11px 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.image-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.image-choice-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #1a1114;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.image-choice-dialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.image-choice-dialog > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close-button:hover {
  background: #2d3038;
  color: var(--text);
}

.image-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-choice-button {
  min-height: 150px;
  padding: 18px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #34373e;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.image-choice-button:hover {
  border-color: var(--primary);
  background: #3b404a;
}

.image-choice-button-disabled,
.image-choice-button-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: transparent;
  background: #34373e;
}

.image-choice-button strong {
  font-size: 14px;
}

.image-choice-button small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.choice-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 42px;
}

.choice-icon-wrap {
  position: relative;
  display: block;
  width: 54px;
  height: 42px;
}

.choice-lock-icon {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 18px;
  height: 14px;
  border: 2px solid #d7dae0;
  border-radius: 2px;
  background: #34373e;
}

.choice-lock-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 8px;
  height: 10px;
  border: 2px solid #d7dae0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.single-image-icon::before,
.single-image-icon::after,
.stacked-image-icon::before,
.stacked-image-icon::after {
  content: "";
  position: absolute;
  border: 3px solid #d7dae0;
  border-radius: 2px;
}

.single-image-icon::before {
  inset: 2px 0 0;
}

.single-image-icon::after {
  width: 18px;
  height: 3px;
  left: 18px;
  top: 20px;
  border: 0;
  background: #d7dae0;
  box-shadow:
    0 -7px 0 -6px #d7dae0,
    0 7px 0 -6px #d7dae0;
}

.stacked-image-icon::before {
  width: 38px;
  height: 31px;
  left: 0;
  bottom: 0;
}

.stacked-image-icon::after {
  width: 38px;
  height: 31px;
  right: 0;
  top: 0;
}

@media (max-width: 520px) {
  .image-choice-actions {
    grid-template-columns: 1fr;
  }

  .image-choice-button {
    min-height: 125px;
  }
}

@media (max-width: 850px) {
  body {
    overflow: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-picker {
    width: 100%;
    flex-basis: auto;
  }

  .app-shell {
    min-height: 100vh;
    height: auto;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    overflow: visible;
  }

  .editor-panel {
    min-height: 600px;
  }

  .image-area {
    min-height: 500px;
    padding: 18px;
  }
}

.custom-select-native {
  display: none;
}

.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.custom-select-trigger {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
}

.custom-select-trigger:focus-visible {
  outline: 2px solid rgba(127, 16, 43, 0.35);
  outline-offset: 2px;
}

.custom-select-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 100;
  width: 100%;
  max-height: 230px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1b1114;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.custom-select-option {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: #32141d;
}

.custom-select-option.selected {
  background: rgba(127, 16, 43, 0.42);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  text-align: center;
  user-select: none;
}

.sidebar-footer-version,
.sidebar-footer-separator {
  flex: 0 0 auto;
}

.sidebar-feedback-link {
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.15s ease,
    outline-color 0.15s ease;
}

.sidebar-feedback-link:hover {
  color: #f0c6d0;
}

.sidebar-feedback-link:focus-visible {
  outline: 2px solid rgba(127, 16, 43, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-page {
  min-height: 100vh;
  overflow-y: auto;
}

.contact-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.contact-header {
  margin-bottom: 52px;
}

.contact-logo {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.contact-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.contact-logo span {
  font-size: 19px;
  font-weight: 700;
}

.contact-logo:hover {
  color: #f0c6d0;
}

.contact-logo:focus-visible,
.contact-link:focus-visible,
.contact-back-link:focus-visible {
  outline: 2px solid rgba(127, 16, 43, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-content h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

.contact-content > p {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.contact-card:hover {
  border-color: var(--primary);
  background: #1a1114;
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(127, 16, 43, 0.5);
  border-radius: 10px;
  background: var(--primary-soft);
  color: #f0c6d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.contact-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-link {
  min-height: 42px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  background: var(--primary-hover);
}

.contact-back-link {
  margin-top: 24px;
  color: #f0c6d0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.contact-back-link:hover {
  color: #ffffff;
}

.privacy-page {
  min-height: 100vh;
  overflow-y: auto;
}

.privacy-shell {
  width: min(900px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.privacy-header {
  margin-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy-logo {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.privacy-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.privacy-logo span {
  font-size: 19px;
  font-weight: 700;
}

.privacy-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.privacy-navigation a,
.privacy-footer a,
.privacy-contact a {
  color: #f0c6d0;
  text-decoration: none;
  font-weight: 700;
}

.privacy-logo:hover,
.privacy-navigation a:hover,
.privacy-footer a:hover,
.privacy-contact a:hover {
  color: #ffffff;
}

.privacy-logo:focus-visible,
.privacy-navigation a:focus-visible,
.privacy-footer a:focus-visible,
.privacy-contact a:focus-visible {
  outline: 2px solid rgba(127, 16, 43, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.privacy-content {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.privacy-updated {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-section {
  margin: 0 0 28px;
}

.privacy-section:last-child {
  margin-bottom: 0;
}

.privacy-section h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

.privacy-section h2 {
  margin: 0 0 10px;
  color: #f0c6d0;
  font-size: 20px;
  line-height: 1.25;
}

.privacy-section p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.privacy-list {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.privacy-list li + li {
  margin-top: 6px;
}

.privacy-contact {
  margin-top: 12px !important;
  overflow-wrap: anywhere;
}

.privacy-footer {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 620px) {
  .contact-shell {
    width: min(100% - 24px, 760px);
    padding: 20px 0 32px;
  }

  .contact-header {
    margin-bottom: 34px;
  }

  .contact-content h1 {
    font-size: 28px;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 220px;
  }

  .privacy-shell {
    width: min(100% - 24px, 900px);
    padding: 20px 0 32px;
  }

  .privacy-header {
    margin-bottom: 30px;
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-navigation {
    justify-content: flex-start;
  }

  .privacy-content {
    padding: 20px;
  }

  .privacy-section h1 {
    font-size: 28px;
  }

  .privacy-section h2 {
    font-size: 18px;
  }
}
