* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #17202a;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

h1 {
    margin: 0 0 8px;
}

.hint {
    margin: 0 0 22px;
    color: #667085;
}

.upload {
    display: inline-flex;
    cursor: pointer;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.upload input {
    display: none;
}

.upload span {
    font-weight: 600;
}

.preview-wrap {
    min-height: 300px;
    border-radius: 16px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview {
    max-width: 100%;
    max-height: 620px;
    display: block;
}

.hidden {
    display: none;
}

.placeholder {
    color: #667085;
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

button {
    border: none;
    background: #1d4ed8;
    color: white;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    background: #98a2b3;
    cursor: not-allowed;
}

.result {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
}

.result ul {
    margin: 8px 0 0;
}

.error {
    color: #b42318;
}

.success {
    color: #067647;
}

.page-links {
  margin-top: 28px;
  padding-top: 8px;
  text-align: center;
}

.page-links .privacy-button {
  margin: 0 auto;
  color: #17202a;
  text-decoration: none;
}

.page-links .privacy-button:hover {
  color: #17202a;
  text-decoration: none;
  border-color: #667085;
  background: #f8fafc;
}

.privacy-card {
    max-width: 920px;
}

.privacy-header {
    margin-bottom: 24px;
}

.secondary-button {
    display: inline-block;
    margin-bottom: 22px;
    padding: 10px 16px;

    border: 1px solid #d0d5dd;
    border-radius: 12px;

    background: #ffffff;
    color: #344054;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.secondary-button:hover {
    background: #f2f4f7;
}

.privacy-section {
    margin-top: 14px;
    padding: 18px 20px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #f9fafb;
}

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

.privacy-section p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

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